3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo='foo; $bar = $foo ?: 'bar'; var_dump($bar);

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.04020.50
5.6.70.4130.03320.50
5.5.240.0170.07320.25
5.4.400.0430.05318.51
5.4.390.0330.05718.59
5.4.380.0370.07718.77
5.4.370.0470.05318.50
5.4.360.0530.04718.61
5.4.350.0470.06718.59
5.4.340.0230.07318.59
5.4.320.0200.08018.75
5.4.310.0330.06318.50
5.4.300.0470.07018.46
5.4.290.0300.06718.74
5.4.280.0370.05318.76
5.4.270.0300.06018.69
5.4.260.0500.07018.65
5.4.250.0600.07018.80
5.4.240.0470.07018.63
5.4.230.0330.07018.61
5.4.220.0500.06318.54
5.4.210.0270.06718.68
5.4.200.0400.04316.63
5.4.190.0400.06318.57
5.4.180.0470.05018.67
5.4.170.0300.05718.79
5.4.160.0430.05718.57
5.4.150.0470.08018.53
5.4.140.0270.06716.17
5.4.130.0330.04716.27
5.4.120.0470.05016.23
5.4.110.0430.05316.29
5.4.100.0400.05316.42
5.4.90.0300.05316.43
5.4.80.0430.05316.30
5.4.70.0300.06016.22
5.4.60.0430.05316.26
5.4.50.0300.05316.22
5.4.40.0300.04716.15
5.4.30.0170.04316.17
5.4.20.0370.05316.25
5.4.10.0270.05316.21
5.4.00.0300.05015.71
5.3.290.0300.06014.66
5.3.280.0370.05314.67
5.3.270.0230.07314.50
5.3.260.0470.06314.70
5.3.250.0470.06014.69
5.3.240.0330.05714.66
5.3.230.0370.06014.55
5.3.220.0400.06014.55
5.3.210.0270.06014.54
5.3.200.0270.05714.55
5.3.190.0300.05014.48
5.3.180.0400.05014.51
5.3.170.0300.05314.47
5.3.160.0200.06014.57
5.3.150.0230.05714.51
5.3.140.0270.05714.48
5.3.130.0330.05314.46
5.3.120.0170.06014.60
5.3.110.0400.04314.58
5.3.100.0370.05314.00
5.3.90.0370.04713.98
5.3.80.0170.06313.93
5.3.70.0370.05013.92
5.3.60.0470.04313.95
5.3.50.0270.05313.98
5.3.40.0330.04713.91
5.3.30.0270.05713.84
5.3.20.0370.05313.74
5.3.10.0200.05713.64
5.3.00.0430.04313.57
5.2.170.0330.04311.12
5.2.160.0300.03711.10
5.2.150.0200.05011.11
5.2.140.0270.05011.30
5.2.130.0400.05711.07
5.2.120.0370.05011.14
5.2.110.0370.06011.03
5.2.100.0270.06711.05
5.2.90.0430.04311.18
5.2.80.0270.05011.01
5.2.70.0230.05011.07
5.2.60.0330.03311.08
5.2.50.0330.04010.98
5.2.40.0200.04011.02
5.2.30.0170.04010.93
5.2.20.0130.04711.01
5.2.10.0200.04310.95
5.2.00.0330.04010.77
5.1.60.0330.0409.97
5.1.50.0130.04310.04
5.1.40.0130.04010.00
5.1.30.0270.04010.47
5.1.20.0170.04710.37
5.1.10.0170.04710.13
5.1.00.0200.03710.10
5.0.50.0200.0208.59
5.0.40.0170.0278.43
5.0.30.0100.0538.29
5.0.20.0170.0308.31
5.0.10.0230.0308.14
5.0.00.0170.0508.17
4.4.90.0200.0235.82
4.4.80.0100.0205.85
4.4.70.0130.0205.92
4.4.60.0170.0235.86
4.4.50.0070.0275.83
4.4.40.0200.0305.95
4.4.30.0100.0205.91
4.4.20.0130.0175.96
4.4.10.0100.0235.93
4.4.00.0130.0375.93
4.3.110.0170.0275.86
4.3.100.0170.0175.74
4.3.90.0130.0275.79
4.3.80.0170.0405.89
4.3.70.0170.0175.88
4.3.60.0000.0305.87
4.3.50.0030.0275.82
4.3.40.0030.0405.75
4.3.30.0070.0204.53
4.3.20.0070.0204.53
4.3.10.0030.0234.55
4.3.00.0030.0206.68

preferences:
147.62 ms | 1394 KiB | 7 Q