3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function CalcularTiempo($Timestamp){ $Segundos = 1453894672 - 1453894620; return intval($Segundos); } function CalcularVelocidad($Distancia, $Tiempo){ $Velocidad = $Distancia / $Tiempo; $Velocidad = $Velocidad * 3.6; return $Velocidad; } function CalcularDistancia($OrigenLat, $OrigenLon, $DestinoLat, $DestinoLon){ $R = 6371; $dLat = ($DestinoLat - $OrigenLat) * (pi() / 180); $dLon = ($DestinoLon - $OrigenLon) * (pi() / 180); $a = sin($dLat / 2) * sin($dLat / 2) + cos($OrigenLat * (pi() / 180)) * cos($DestinoLat * (pi() / 180)) * sin($dLon / 2) * sin($dLon / 2); $c = 2 * atan2(sqrt($a), sqrt(1 - $a)); return ($R * $c) * 1000; } $Tiempo = CalcularTiempo(); $Distancia = CalcularDistancia(38.278096798610605,-0.6911851008339024,38.2788421664234,-0.6901980479164007); $Velocidad = CalcularVelocidad($Distancia, $Tiempo); echo strtotime('now'); ?>
based on rElCQ
Output for 7.1.0 - 7.2.0
Fatal error: Uncaught ArgumentCountError: Too few arguments to function CalcularTiempo(), 0 passed in /in/gtkD2 on line 26 and exactly 1 expected in /in/gtkD2:4 Stack trace: #0 /in/gtkD2(26): CalcularTiempo() #1 {main} thrown in /in/gtkD2 on line 4
Process exited with code 255.
Output for 5.6.28, 7.0.20
Warning: Missing argument 1 for CalcularTiempo(), called in /in/gtkD2 on line 26 and defined in /in/gtkD2 on line 4 1453894692
Output for 7.0.6
Warning: Missing argument 1 for CalcularTiempo(), called in /in/gtkD2 on line 26 and defined in /in/gtkD2 on line 4 1463833538
Output for 7.0.5
Warning: Missing argument 1 for CalcularTiempo(), called in /in/gtkD2 on line 26 and defined in /in/gtkD2 on line 4 1459671444
Output for 7.0.4
Warning: Missing argument 1 for CalcularTiempo(), called in /in/gtkD2 on line 26 and defined in /in/gtkD2 on line 4 1457645187
Output for 7.0.3
Warning: Missing argument 1 for CalcularTiempo(), called in /in/gtkD2 on line 26 and defined in /in/gtkD2 on line 4 1458342187
Output for 7.0.2
Warning: Missing argument 1 for CalcularTiempo(), called in /in/gtkD2 on line 26 and defined in /in/gtkD2 on line 4 1458709783
Output for 7.0.1
Warning: Missing argument 1 for CalcularTiempo(), called in /in/gtkD2 on line 26 and defined in /in/gtkD2 on line 4 1458807076
Output for 7.0.0
Warning: Missing argument 1 for CalcularTiempo(), called in /in/gtkD2 on line 26 and defined in /in/gtkD2 on line 4 1459069378
Output for 5.6.21
Warning: Missing argument 1 for CalcularTiempo(), called in /in/gtkD2 on line 26 and defined in /in/gtkD2 on line 4 1462201963
Output for 5.6.20
Warning: Missing argument 1 for CalcularTiempo(), called in /in/gtkD2 on line 26 and defined in /in/gtkD2 on line 4 1460272774
Output for 5.6.19
Warning: Missing argument 1 for CalcularTiempo(), called in /in/gtkD2 on line 26 and defined in /in/gtkD2 on line 4 1457415353
Output for 5.6.18
Warning: Missing argument 1 for CalcularTiempo(), called in /in/gtkD2 on line 26 and defined in /in/gtkD2 on line 4 1458052589
Output for 5.6.17
Warning: Missing argument 1 for CalcularTiempo(), called in /in/gtkD2 on line 26 and defined in /in/gtkD2 on line 4 1458440089
Output for 5.6.16
Warning: Missing argument 1 for CalcularTiempo(), called in /in/gtkD2 on line 26 and defined in /in/gtkD2 on line 4 1459158723
Output for 5.6.15
Warning: Missing argument 1 for CalcularTiempo(), called in /in/gtkD2 on line 26 and defined in /in/gtkD2 on line 4 1459248123
Output for 5.6.14
Warning: Missing argument 1 for CalcularTiempo(), called in /in/gtkD2 on line 26 and defined in /in/gtkD2 on line 4 1460651100
Output for 5.6.13
Warning: Missing argument 1 for CalcularTiempo(), called in /in/gtkD2 on line 26 and defined in /in/gtkD2 on line 4 1460740004
Output for 5.6.12
Warning: Missing argument 1 for CalcularTiempo(), called in /in/gtkD2 on line 26 and defined in /in/gtkD2 on line 4 1461137737
Output for 5.6.11
Warning: Missing argument 1 for CalcularTiempo(), called in /in/gtkD2 on line 26 and defined in /in/gtkD2 on line 4 1461506477
Output for 5.6.10
Warning: Missing argument 1 for CalcularTiempo(), called in /in/gtkD2 on line 26 and defined in /in/gtkD2 on line 4 1461600416
Output for 5.6.9
Warning: Missing argument 1 for CalcularTiempo(), called in /in/gtkD2 on line 26 and defined in /in/gtkD2 on line 4 1461792933
Output for 5.6.8
Warning: Missing argument 1 for CalcularTiempo(), called in /in/gtkD2 on line 26 and defined in /in/gtkD2 on line 4 1461996083
Output for 5.5.35
Warning: Missing argument 1 for CalcularTiempo(), called in /in/gtkD2 on line 26 and defined in /in/gtkD2 on line 4 1463966969
Output for 5.5.34
Warning: Missing argument 1 for CalcularTiempo(), called in /in/gtkD2 on line 26 and defined in /in/gtkD2 on line 4 1460367237
Output for 5.5.33
Warning: Missing argument 1 for CalcularTiempo(), called in /in/gtkD2 on line 26 and defined in /in/gtkD2 on line 4 1457512879
Output for 5.5.32
Warning: Missing argument 1 for CalcularTiempo(), called in /in/gtkD2 on line 26 and defined in /in/gtkD2 on line 4 1458239827
Output for 5.5.31
Warning: Missing argument 1 for CalcularTiempo(), called in /in/gtkD2 on line 26 and defined in /in/gtkD2 on line 4 1458537905
Output for 5.5.30
Warning: Missing argument 1 for CalcularTiempo(), called in /in/gtkD2 on line 26 and defined in /in/gtkD2 on line 4 1459513969
Output for 5.5.29
Warning: Missing argument 1 for CalcularTiempo(), called in /in/gtkD2 on line 26 and defined in /in/gtkD2 on line 4 1460877676
Output for 5.5.28
Warning: Missing argument 1 for CalcularTiempo(), called in /in/gtkD2 on line 26 and defined in /in/gtkD2 on line 4 1461236148
Output for 5.5.27
Warning: Missing argument 1 for CalcularTiempo(), called in /in/gtkD2 on line 26 and defined in /in/gtkD2 on line 4 1461328282
Output for 5.5.26
Warning: Missing argument 1 for CalcularTiempo(), called in /in/gtkD2 on line 26 and defined in /in/gtkD2 on line 4 1461696544
Output for 5.5.25
Warning: Missing argument 1 for CalcularTiempo(), called in /in/gtkD2 on line 26 and defined in /in/gtkD2 on line 4 1461896220
Output for 5.5.24
Warning: Missing argument 1 for CalcularTiempo(), called in /in/gtkD2 on line 26 and defined in /in/gtkD2 on line 4 1464079630
Output for 5.4.45
Warning: Missing argument 1 for CalcularTiempo(), called in /in/gtkD2 on line 26 and defined in /in/gtkD2 on line 4 1453894695
Output for 5.4.43 - 5.4.44
Warning: Missing argument 1 for CalcularTiempo(), called in /in/gtkD2 on line 26 and defined in /in/gtkD2 on line 4 1453894696
Output for 5.4.41 - 5.4.42
Warning: Missing argument 1 for CalcularTiempo(), called in /in/gtkD2 on line 26 and defined in /in/gtkD2 on line 4 1453894697
Output for 5.4.40
Warning: Missing argument 1 for CalcularTiempo(), called in /in/gtkD2 on line 26 and defined in /in/gtkD2 on line 4 1453894698
Output for 5.4.37 - 5.4.39
Warning: Missing argument 1 for CalcularTiempo(), called in /in/gtkD2 on line 26 and defined in /in/gtkD2 on line 4 1453894699
Output for 5.4.35 - 5.4.36
Warning: Missing argument 1 for CalcularTiempo(), called in /in/gtkD2 on line 26 and defined in /in/gtkD2 on line 4 1453894700
Output for 5.4.32 - 5.4.34
Warning: Missing argument 1 for CalcularTiempo(), called in /in/gtkD2 on line 26 and defined in /in/gtkD2 on line 4 1453894701
Output for 5.3.29, 5.4.29 - 5.4.31
Warning: Missing argument 1 for CalcularTiempo(), called in /in/gtkD2 on line 26 and defined in /in/gtkD2 on line 4 1453894702
Output for 5.4.25 - 5.4.28
Warning: Missing argument 1 for CalcularTiempo(), called in /in/gtkD2 on line 26 and defined in /in/gtkD2 on line 4 1453894703
Output for 5.3.28, 5.4.23 - 5.4.24
Warning: Missing argument 1 for CalcularTiempo(), called in /in/gtkD2 on line 26 and defined in /in/gtkD2 on line 4 1453894704
Output for 5.4.19 - 5.4.22
Warning: Missing argument 1 for CalcularTiempo(), called in /in/gtkD2 on line 26 and defined in /in/gtkD2 on line 4 1453894705
Output for 5.3.26 - 5.3.27, 5.4.17 - 5.4.18
Warning: Missing argument 1 for CalcularTiempo(), called in /in/gtkD2 on line 26 and defined in /in/gtkD2 on line 4 1453894706
Output for 5.3.23 - 5.3.25, 5.4.12 - 5.4.16
Warning: Missing argument 1 for CalcularTiempo(), called in /in/gtkD2 on line 26 and defined in /in/gtkD2 on line 4 1453894707
Output for 5.3.22
Warning: Missing argument 1 for CalcularTiempo(), called in /in/gtkD2 on line 26 and defined in /in/gtkD2 on line 4 1453894708