3v4l.org

run code in 300+ PHP versions simultaneously
<?php $day_start=06:00; $day_end=22:59; $night_start=23:00; $night_end=05:59; $dtarif=30USD; $ntarif=80USD; function showtarif($day_start,$day_end,$night_start,$night_end,$dtarif,$ntarif) { $current=date("H:i"); if ($current >=$day_start && $current <=$day_end) { $absulate_tarif=$dtarif; } else if ($current >=$night_start && $current <=$night_end) { $absulate_tarif=$ntarif; } return $absulate_tarif; }

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
5.4.270.0070.06019.02
5.4.260.0130.05719.00
5.4.250.0170.05319.09
5.4.240.0170.07018.80
5.4.230.0030.06018.89
5.4.220.0230.06718.93
5.4.210.0230.06318.85
5.4.200.0130.07318.93
5.4.190.0070.05318.64
5.4.180.0170.06018.75
5.4.170.0200.06318.76
5.4.160.0100.05718.97
5.4.150.0130.05318.77
5.4.140.0200.06016.43
5.4.130.0070.05316.39
5.4.120.0030.07316.30
5.4.110.0030.05716.38
5.4.100.0030.07316.38
5.4.90.0070.07316.41
5.4.80.0100.04716.60
5.4.70.0100.05016.55
5.4.60.0130.05316.49
5.4.50.0170.06016.54
5.4.40.0130.05316.44
5.4.30.0070.05716.39
5.4.20.0070.05316.40
5.4.10.0130.05316.36
5.4.00.0130.05315.84
5.3.280.0070.06314.75
5.3.270.0100.07714.70
5.3.260.0100.05014.61
5.3.250.0200.04714.62
5.3.240.0130.06014.47
5.3.230.0170.04314.37
5.3.220.0030.06014.56
5.3.210.0130.07014.59
5.3.200.0070.06714.42
5.3.190.0030.06014.59
5.3.180.0200.05014.45
5.3.170.0200.04314.45
5.3.160.0170.06714.58
5.3.150.0100.06714.73
5.3.140.0100.04714.45
5.3.130.0200.05014.54
5.3.120.0200.04714.56
5.3.110.0100.05714.56
5.3.100.0100.04713.95
5.3.90.0130.06713.86
5.3.80.0070.06313.72
5.3.70.0130.04714.04
5.3.60.0270.05013.91
5.3.50.0070.05313.88
5.3.40.0070.05313.95
5.3.30.0100.04314.06
5.3.20.0100.05013.78
5.3.10.0100.05013.66
5.3.00.0070.05313.56
5.2.170.0070.06011.25
5.2.160.0030.04311.14
5.2.150.0030.05311.06
5.2.140.0100.05310.90
5.2.130.0100.03710.98
5.2.120.0100.05311.11
5.2.110.0030.05011.25
5.2.100.0000.04311.10
5.2.90.0070.06011.11
5.2.80.0070.04011.10
5.2.70.0100.04711.00
5.2.60.0030.06310.95
5.2.50.0100.03710.90
5.2.40.0130.04710.89
5.2.30.0070.04011.08
5.2.20.0100.05710.84
5.2.10.0070.05010.77
5.2.00.0100.03710.81
5.1.60.0030.0539.84
5.1.50.0070.04010.09
5.1.40.0030.0609.70
5.1.30.0170.04010.26
5.1.20.0070.04710.33
5.1.10.0030.0409.83
5.1.00.0030.05010.10
5.0.50.0000.0378.64
5.0.40.0130.0308.59
5.0.30.0030.0478.45
5.0.20.0000.0408.17
5.0.10.0030.0338.40
5.0.00.0030.0408.10
4.4.90.0000.0236.90
4.4.80.0070.0276.90
4.4.70.0100.0176.90
4.4.60.0030.0206.90
4.4.50.0100.0276.90
4.4.40.0000.0376.90
4.4.30.0030.0206.90
4.4.20.0100.0276.90
4.4.10.0130.0106.90
4.4.00.0030.0336.90
4.3.110.0030.0206.90
4.3.100.0030.0306.90
4.3.90.0030.0206.90
4.3.80.0100.0276.90
4.3.70.0000.0236.90
4.3.60.0030.0206.90
4.3.50.0000.0276.90
4.3.40.0030.0436.90
4.3.30.0000.0306.90
4.3.20.0070.0236.90
4.3.10.0070.0236.90
4.3.00.0300.01013.50

preferences:
142.37 ms | 1394 KiB | 7 Q