3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $test = array('test' => -1); echo !$test['test']; if (!$test['test'] != 1) echo 'wtf'; else echo 'no wtf';

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).
Note: hhvm uses a JIT which only kicks in after a few runs. Since we run scripts only once, hhvm always runs slower.

VersionSystem time (s)User time (s)Memory (MiB)
7.3.00.0080.00816.58
7.2.130.0100.00716.91
7.2.120.0110.00316.43
7.2.110.0080.00416.64
7.2.100.0090.00016.71
7.2.90.0120.00616.94
7.2.80.0120.00316.81
7.2.70.0150.00316.86
7.2.60.0070.01016.70
7.2.50.0080.00817.03
7.2.40.0130.00316.79
7.2.30.0090.00616.65
7.2.20.0030.00917.01
7.2.10.0130.00716.62
7.2.00.0040.00918.12
7.1.250.0060.01015.73
7.1.240.0100.00015.84
7.1.230.0140.00415.80
7.1.220.0000.01015.43
7.1.210.0030.01015.23
7.1.200.0120.00815.76
7.1.190.0120.00415.66
7.1.180.0130.00315.38
7.1.170.0110.00315.77
7.1.160.0080.00415.65
7.1.150.0040.00815.66
7.1.140.0080.00615.73
7.1.130.0100.00515.51
7.1.120.0080.00415.75
7.1.110.0060.00615.68
7.1.100.0400.00613.98
7.1.90.0040.01115.60
7.1.80.0090.00615.84
7.1.70.0060.00716.54
7.1.60.0080.00717.58
7.1.50.0070.00816.02
7.1.40.0130.01015.83
7.1.30.0110.00415.43
7.1.20.0050.00515.62
7.1.10.0080.00515.91
7.1.00.0120.03718.77
7.0.330.0100.00015.25
7.0.320.0040.01115.32
7.0.310.0100.00315.25
7.0.300.0120.00314.95
7.0.290.0140.00315.21
7.0.280.0080.00415.27
7.0.270.0040.00815.33
7.0.260.0120.00014.87
7.0.250.0060.00915.16
7.0.240.0090.00615.11
7.0.230.0030.01015.34
7.0.220.0040.01115.18
7.0.210.0090.00314.77
7.0.200.0050.00815.02
7.0.190.0130.00015.25
7.0.180.0110.00315.16
7.0.170.0080.00615.25
7.0.160.0070.00715.29
7.0.150.0060.00915.09
7.0.140.0070.03718.61
7.0.130.0090.00615.31
7.0.120.0070.00715.09
7.0.110.0060.00915.10
7.0.100.0090.00615.25
7.0.90.0060.00914.93
7.0.80.0120.00315.19
7.0.70.0090.00615.04
7.0.60.0200.02217.64
7.0.50.0080.04316.58
7.0.40.0050.05216.56
7.0.30.0130.03016.49
7.0.20.0150.02216.73
7.0.10.0070.04516.60
7.0.00.0060.02416.68
5.6.380.0060.00314.12
5.6.370.0130.00014.46
5.6.360.0070.00714.54
5.6.350.0030.00614.41
5.6.340.0040.00814.55
5.6.330.0060.00614.33
5.6.320.0000.01113.98
5.6.310.0080.00414.33
5.6.300.0060.00314.41
5.6.290.0030.00714.21
5.6.280.0030.04017.55
5.6.270.0030.00714.52
5.6.260.0030.00714.48
5.6.250.0030.01314.25
5.6.240.0030.00614.05
5.6.230.0040.01113.89
5.6.220.0000.01013.97
5.6.210.0090.04417.28
5.6.200.0100.04016.20
5.6.190.0110.03517.27
5.6.180.0180.04017.45
5.6.170.0140.04217.26
5.6.160.0060.04517.29
5.6.150.0050.02216.02
5.6.140.0070.03515.97
5.6.130.0050.04716.21
5.6.120.0080.02317.62
5.6.110.0120.03917.70
5.6.100.0070.02617.57
5.6.90.0070.04217.54
5.6.80.0130.03517.17
5.6.70.0090.00314.05
5.6.60.0040.00814.00
5.6.50.0100.00713.70
5.6.40.0110.00314.20
5.6.30.0040.00714.17
5.6.20.0110.00014.10
5.6.10.0090.00614.32
5.6.00.0070.00714.15
5.5.380.0060.00310.90
5.5.370.0030.00610.90
5.5.360.0040.00410.90
5.5.350.0160.02615.66
5.5.340.0050.02114.53
5.5.330.0080.04715.52
5.5.320.0150.02915.61
5.5.310.0120.04415.70
5.5.300.0090.03814.47
5.5.290.0030.02314.42
5.5.280.0020.04915.93
5.5.270.0080.04515.81
5.5.260.0080.03115.88
5.5.250.0110.04115.74
5.5.240.0130.03815.57
5.5.230.0030.00910.90
5.5.220.0040.00710.90
5.5.210.0030.00710.93
5.5.200.0030.01010.90
5.5.190.0000.00910.95
5.5.180.0040.00410.99
5.5.170.0030.00610.93
5.5.160.0090.00411.20
5.5.150.0040.01111.20
5.5.140.0120.00511.07
5.5.130.0100.00310.96
5.5.120.0040.00911.29
5.5.110.0090.00911.29
5.5.100.0040.01211.25
5.5.90.0070.01011.09
5.5.80.0040.00810.90
5.5.70.0070.00311.12
5.5.60.0090.00310.90
5.5.50.0050.01011.25
5.5.40.0120.00311.09
5.5.30.0090.00610.90
5.5.20.0140.00010.90
5.5.10.0100.00710.90
5.5.00.0100.00210.98
5.4.450.0400.03415.34
5.4.440.0300.03515.15
5.4.430.0470.02815.18
5.4.420.0030.03415.25
5.4.410.0100.03314.93
5.4.400.0390.03315.01
5.4.390.0420.03315.03
5.4.380.0230.03614.82
5.4.370.0190.02814.79
5.4.360.0100.03814.74
5.4.350.0200.03414.70
5.4.340.0260.02914.83
5.4.330.0100.00511.02
5.4.320.0100.01811.78
5.4.310.0100.02211.67
5.4.300.0070.02011.73
5.4.290.0080.03211.67
5.4.280.0120.02311.62
5.4.270.0110.02311.61
5.4.260.0070.03011.66
5.4.250.0080.03111.61
5.4.240.0080.03111.61
5.4.230.0050.03111.64
5.4.220.0070.02111.61
5.4.210.0030.02511.61
5.4.200.0100.02011.61
5.4.190.0090.02111.61
5.4.180.0090.02011.65
5.4.170.0070.02211.74
5.4.160.0060.02211.64
5.4.150.0060.02311.66
5.4.140.0060.02111.49
5.4.130.0050.02011.58
5.4.120.0060.02011.48
5.4.110.0030.02311.42
5.4.100.0040.02511.48
5.4.90.0070.02411.42
5.4.80.0060.02111.43
5.4.70.0060.02111.50
5.4.60.0020.02311.45
5.4.50.0060.02011.51
5.4.40.0070.01911.41
5.4.30.0050.02111.42
5.4.20.0040.02011.48
5.4.10.0020.02411.41
5.4.00.0060.02111.19
5.3.290.0100.02111.85
5.3.280.0070.02311.80
5.3.270.0110.02111.81
5.3.260.0060.02311.81
5.3.250.0060.02211.81
5.3.240.0070.02011.81
5.3.230.0040.02411.80
5.3.220.0060.02211.79
5.3.210.0050.02411.79
5.3.200.0060.02011.79
5.3.190.0040.02811.79
5.3.180.0050.02311.79
5.3.170.0060.02011.79
5.3.160.0040.02611.79
5.3.150.0040.03311.78
5.3.140.0060.02711.78
5.3.130.0080.02311.78
5.3.120.0090.02311.78
5.3.110.0040.02811.78
5.3.100.0070.02611.51
5.3.90.0060.03111.49
5.3.80.0090.02411.49
5.3.70.0060.02211.49
5.3.60.0020.02511.48
5.3.50.0010.02711.45
5.3.40.0060.01911.45
5.3.30.0070.02011.42
5.3.20.0040.02111.31
5.3.10.0060.02011.29
5.3.00.0050.02711.29
5.2.170.0050.02310.04
5.2.160.0050.02210.04
5.2.150.0050.02410.04
5.2.140.0070.03110.04
5.2.130.0050.01710.02
5.2.120.0060.02210.02
5.2.110.0020.02010.02
5.2.100.0040.01710.02
5.2.90.0050.01810.02
5.2.80.0050.02410.01
5.2.70.0020.02610.02
5.2.60.0050.0259.99
5.2.50.0060.0249.98
5.2.40.0070.0189.97
5.2.30.0020.0199.95
5.2.20.0030.0199.95
5.2.10.0070.0159.91
5.2.00.0020.0209.84
5.1.60.0040.0169.48
5.1.50.0040.0159.48
5.1.40.0070.0279.47
5.1.30.0050.0149.64
5.1.20.0020.0169.65
5.1.10.0040.0179.52
5.1.00.0050.0229.52
5.0.50.0070.0148.75
5.0.40.0020.0138.68
5.0.30.0040.0188.59
5.0.20.0040.0108.58
5.0.10.0030.0118.56
5.0.00.0020.0238.56
4.4.90.0040.0117.84
4.4.80.0040.0107.82
4.4.70.0030.0127.83
4.4.60.0020.0117.83
4.4.50.0020.0117.83
4.4.40.0010.0167.80
4.4.30.0010.0127.83
4.4.20.0030.0117.87
4.4.10.0040.0107.87
4.4.00.0020.0137.83
4.3.110.0060.0077.79
4.3.100.0020.0107.78
4.3.90.0040.0077.77
4.3.80.0040.0137.74
4.3.70.0030.0097.77
4.3.60.0020.0107.76
4.3.50.0030.0097.76
4.3.40.0010.0157.72
4.3.30.0040.0087.09
4.3.20.0030.0107.08
4.3.10.0040.0097.06
4.3.00.0150.01010.72