3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = false; $b = true; $c = false; if ($a ? $b : $c) {    echo 1; } else {    echo 'true'; }

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.260.0070.06719.09
5.4.250.0070.05318.89
5.4.240.0030.05718.78
5.4.230.0130.04718.88
5.4.220.0070.05718.73
5.4.210.0100.07318.92
5.4.200.0100.05019.02
5.4.190.0100.04718.95
5.4.180.0170.05718.95
5.4.170.0100.04718.93
5.4.160.0030.05318.71
5.4.150.0070.05718.72
5.4.140.0170.04016.31
5.4.130.0070.06016.34
5.4.120.0030.05316.30
5.4.110.0130.05716.35
5.4.100.0030.05316.43
5.4.90.0030.05016.64
5.4.80.0070.05016.25
5.4.70.0070.05016.25
5.4.60.0130.05016.35
5.4.50.0130.04016.35
5.4.40.0100.04716.50
5.4.30.0000.05316.27
5.4.20.0100.07316.44
5.4.10.0100.08016.34
5.4.00.0170.04715.86
5.3.280.0170.04014.60
5.3.270.0030.05714.75
5.3.260.0100.04714.48
5.3.250.0030.05314.48
5.3.240.0100.07314.30
5.3.230.0100.06714.50
5.3.220.0100.05014.68
5.3.210.0070.05014.27
5.3.200.0100.05014.59
5.3.190.0030.05014.53
5.3.180.0030.05314.40
5.3.170.0100.04714.42
5.3.160.0100.04314.52
5.3.150.0030.05314.27
5.3.140.0100.04714.44
5.3.130.0070.07314.40
5.3.120.0100.05714.64
5.3.110.0100.05014.55
5.3.100.0030.05014.04
5.3.90.0070.04714.01
5.3.80.0070.05314.07
5.3.70.0000.05714.04
5.3.60.0030.06013.87
5.3.50.0070.06713.96
5.3.40.0130.04713.72
5.3.30.0070.04713.93
5.3.20.0100.04713.84
5.3.10.0000.07013.35
5.3.00.0000.05313.49
5.2.170.0100.05711.16
5.2.160.0130.03311.03
5.2.150.0000.04311.25
5.2.140.0100.03711.29
5.2.130.0030.06011.12
5.2.120.0000.04711.00
5.2.110.0000.05010.86
5.2.100.0070.04711.21
5.2.90.0000.04310.88
5.2.80.0070.04311.20
5.2.70.0070.04311.20
5.2.60.0070.03711.15
5.2.50.0070.04011.11
5.2.40.0030.04310.76
5.2.30.0130.03010.89
5.2.20.0000.04310.96
5.2.10.0070.03310.79
5.2.00.0000.05710.65
5.1.60.0030.03710.23
5.1.50.0030.04010.02
5.1.40.0030.0339.82
5.1.30.0100.03310.18
5.1.20.0000.03710.41
5.1.10.0030.04710.13
5.1.00.0100.0409.98
5.0.50.0030.0308.39
5.0.40.0030.0308.44
5.0.30.0030.0578.26
5.0.20.0000.0338.02
5.0.10.0000.0338.17
5.0.00.0070.0438.39
4.4.90.0000.0306.70
4.4.80.0070.0206.70
4.4.70.0000.0236.70
4.4.60.0070.0306.70
4.4.50.0030.0206.70
4.4.40.0000.0336.70
4.4.30.0030.0206.70
4.4.20.0000.0306.70
4.4.10.0000.0306.70
4.4.00.0000.0476.70
4.3.110.0070.0276.70
4.3.100.0030.0236.70
4.3.90.0000.0206.70
4.3.80.0070.0306.70
4.3.70.0000.0306.70
4.3.60.0000.0206.70
4.3.50.0070.0176.70
4.3.40.0030.0306.70
4.3.30.0000.0236.70
4.3.20.0030.0306.70
4.3.10.0030.0236.70
4.3.00.0070.0276.91

preferences:
144.05 ms | 1398 KiB | 7 Q