3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test() { echo "42"; return true; } function next() { echo "false"; } test() ?: next();

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.6.80.0030.03720.26
5.5.240.0070.07020.24
5.4.400.0230.06018.48
5.4.390.0130.05718.79
5.4.380.0230.04718.45
5.4.370.0230.04718.79
5.4.360.0170.05318.44
5.4.350.0170.05718.56
5.4.340.0170.05718.71
5.4.320.0300.05318.57
5.4.310.0170.05318.61
5.4.300.0230.04718.72
5.4.290.0270.04718.70
5.4.280.0170.05318.61
5.4.270.0130.07018.55
5.4.260.0130.05318.62
5.4.250.0270.04718.70
5.4.240.0230.05018.82
5.4.230.0230.05018.54
5.4.220.0170.07718.71
5.4.210.0270.04318.68
5.4.200.0230.04316.56
5.4.190.0200.05018.75
5.4.180.0200.05318.70
5.4.170.0270.05318.54
5.4.160.0230.05318.67
5.4.150.0100.06018.67
5.4.140.0170.05316.18
5.4.130.0170.04716.29
5.4.120.0230.04716.29
5.4.110.0300.03316.17
5.4.100.0200.05316.30
5.4.90.0170.05316.32
5.4.80.0070.06316.18
5.4.70.0200.04316.25
5.4.60.0100.05316.20
5.4.50.0170.05016.22
5.4.40.0330.05716.39
5.4.30.0200.05716.33
5.4.20.0130.05316.40
5.4.10.0200.05316.27
5.4.00.0130.05015.72
5.3.290.0270.04314.83
5.3.280.0130.06014.76
5.3.270.0230.04714.59
5.3.260.0170.05714.83
5.3.250.0170.05314.66
5.3.240.0100.06014.65
5.3.230.0230.05014.80
5.3.220.0170.05314.62
5.3.210.0230.05014.76
5.3.200.0170.05314.61
5.3.190.0270.04014.57
5.3.180.0130.05014.55
5.3.170.0130.05714.79
5.3.160.0170.05314.75
5.3.150.0200.05714.60
5.3.140.0230.04314.59
5.3.130.0230.05314.73
5.3.120.0230.05714.59
5.3.110.0170.05714.61
5.3.100.0130.06014.05
5.3.90.0130.05714.12
5.3.80.0170.05314.20
5.3.70.0100.06014.05
5.3.60.0100.06314.22
5.3.50.0100.05714.11
5.3.40.0130.05314.07
5.3.30.0170.04713.89
5.3.20.0200.05013.73
5.3.10.0130.05013.76
5.3.00.0300.04013.68
5.2.170.0130.04311.24
5.2.160.0230.03311.35
5.2.150.0100.04711.36
5.2.140.0130.04311.20
5.2.130.0230.04711.12
5.2.120.0230.04711.20
5.2.110.0200.04011.09
5.2.100.0170.03311.32
5.2.90.0100.05011.08
5.2.80.0170.03711.22
5.2.70.0170.03711.16
5.2.60.0130.04011.26
5.2.50.0170.03711.11
5.2.40.0170.04011.11
5.2.30.0100.06011.02
5.2.20.0170.05011.04
5.2.10.0130.05010.89
5.2.00.0200.05010.95
5.1.60.0130.04710.02
5.1.50.0230.03310.13
5.1.40.0100.05010.02
5.1.30.0170.03710.36
5.1.20.0100.04010.44
5.1.10.0170.04310.11
5.1.00.0230.02310.11
5.0.50.0070.0338.53
5.0.40.0070.0308.59
5.0.30.0030.0478.31
5.0.20.0130.0238.25
5.0.10.0070.0308.21
5.0.00.0130.0478.14
4.4.90.0100.0276.88
4.4.80.0130.0236.88
4.4.70.0030.0306.88
4.4.60.0030.0236.88
4.4.50.0130.0176.88
4.4.40.0070.0476.88
4.4.30.0070.0306.88
4.4.20.0130.0236.88
4.4.10.0030.0336.88
4.4.00.0100.0406.88
4.3.110.0070.0306.88
4.3.100.0000.0376.88
4.3.90.0100.0206.88
4.3.80.0030.0376.88
4.3.70.0000.0336.88
4.3.60.0000.0276.88
4.3.50.0070.0236.88
4.3.40.0030.0406.88
4.3.30.0070.0236.88
4.3.20.0030.0236.88
4.3.10.0030.0236.88
4.3.00.0000.0237.20

preferences:
141.38 ms | 1394 KiB | 7 Q