3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a=2; $b= $a===1? "hello":$a===2?"world";

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.0170.03320.50
5.5.240.0230.04020.15
5.4.400.1400.07018.77
5.4.390.1300.08018.75
5.4.380.1400.06318.55
5.4.370.1470.07318.58
5.4.360.1370.06018.71
5.4.350.1270.06018.83
5.4.340.1470.05718.69
5.4.320.1230.06718.70
5.4.310.1500.06318.52
5.4.300.1500.06718.81
5.4.290.1270.05018.68
5.4.280.1300.06018.84
5.4.270.1270.06018.77
5.4.260.1330.04318.61
5.4.250.1270.06718.72
5.4.240.1400.04318.71
5.4.230.1230.05318.53
5.4.220.1200.06318.82
5.4.210.1370.06718.56
5.4.200.1370.06316.60
5.4.190.1130.05718.66
5.4.180.1230.05718.62
5.4.170.1200.07018.71
5.4.160.1300.06318.44
5.4.150.1470.08718.74
5.4.140.1270.07016.42
5.4.130.1230.04316.18
5.4.120.1370.05716.16
5.4.110.1130.06316.40
5.4.100.1100.06016.40
5.4.90.1200.06716.40
5.4.80.1030.06716.40
5.4.70.1470.07016.24
5.4.60.0930.07716.28
5.4.50.1200.06016.29
5.4.40.1370.06016.29
5.4.30.1030.06716.39
5.4.20.1130.08016.24
5.4.10.0730.05316.12
5.4.00.0170.06015.66
5.3.290.0330.08014.72
5.3.280.1270.05314.64
5.3.270.1300.05714.68
5.3.260.1770.07314.55
5.3.250.1100.07714.51
5.3.240.1070.07314.58
5.3.230.1200.06314.53
5.3.220.1200.08014.64
5.3.210.1470.06714.66
5.3.200.1270.06714.50
5.3.190.1230.07014.56
5.3.180.1230.06314.54
5.3.170.1100.08014.50
5.3.160.0970.07014.50
5.3.150.1070.07314.53
5.3.140.1170.06714.61
5.3.130.1030.08314.64
5.3.120.1300.07314.49
5.3.110.1270.06014.63
5.3.100.1270.07014.05
5.3.90.1130.06013.93
5.3.80.1270.07714.00
5.3.70.1430.06013.97
5.3.60.1170.06314.09
5.3.50.1230.07013.88
5.3.40.1170.07313.89
5.3.30.1270.05314.00
5.3.20.1430.06713.66
5.3.10.1370.06013.59
5.3.00.1670.04713.63
5.2.170.1200.04011.15
5.2.160.1070.03711.18
5.2.150.1130.05711.14
5.2.140.1070.05711.07
5.2.130.1170.05311.05
5.2.120.0900.03711.10
5.2.110.0900.05311.05
5.2.100.1270.05011.05
5.2.90.1130.05311.00
5.2.80.1030.05011.25
5.2.70.0800.05011.13
5.2.60.0900.04311.08
5.2.50.1270.05010.97
5.2.40.0800.04710.97
5.2.30.0930.04010.93
5.2.20.0600.05711.04
5.2.10.0870.04710.90
5.2.00.0900.05710.67
5.1.60.0970.04310.05
5.1.50.0500.04710.12
5.1.40.0800.0309.99
5.1.30.0970.06010.37
5.1.20.1000.04010.39
5.1.10.0600.05710.09
5.1.00.0730.05310.04
5.0.50.0330.0338.56
5.0.40.0200.0378.43
5.0.30.0370.0478.23
5.0.20.0270.0438.23
5.0.10.0400.0338.19
5.0.00.0570.0438.33
4.4.90.0400.0236.34
4.4.80.0370.0276.34
4.4.70.0400.0336.34
4.4.60.0300.0306.34
4.4.50.0470.0236.34
4.4.40.0470.0436.34
4.4.30.0530.0236.34
4.4.20.0670.0236.34
4.4.10.0470.0236.34
4.4.00.0330.0436.34
4.3.110.0430.0236.34
4.3.100.0470.0236.34
4.3.90.0630.0236.34
4.3.80.0470.0376.34
4.3.70.0530.0176.34
4.3.60.0330.0206.34
4.3.50.0400.0276.34
4.3.40.0500.0336.34
4.3.30.0330.0236.34
4.3.20.0230.0306.34
4.3.10.0230.0276.34
4.3.00.0000.0236.90

preferences:
130.41 ms | 1398 KiB | 7 Q