3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function sad() { return 'nonsense'; } function stop() { return 'please stop'; } function sing() {} function beAwesome() {} // life motto if (sad() == true) { sad().stop(); sing(); } else { beAwesome(); } ?>

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.10.0030.01016.49
7.3.00.0060.00516.70
7.2.130.0070.00716.63
7.2.120.0070.00516.67
7.2.110.0050.01016.46
7.2.100.0080.00716.63
7.2.90.0030.01416.70
7.2.80.0060.00616.61
7.2.70.0020.00816.69
7.2.60.0060.00916.73
7.2.50.0040.00916.70
7.2.40.0080.00716.67
7.2.30.0090.00516.71
7.2.20.0050.00716.79
7.2.10.0090.00716.60
7.2.00.0020.01117.50
7.1.250.0050.00815.60
7.1.240.0000.01515.70
7.1.230.0060.00915.55
7.1.220.0060.01215.65
7.1.210.0030.00615.55
7.1.200.0050.00815.46
7.1.190.0070.00415.59
7.1.180.0000.00815.84
7.1.170.0030.01015.80
7.1.160.0140.00015.50
7.1.150.0090.00615.62
7.1.140.0070.00715.50
7.1.130.0090.00615.28
7.1.120.0070.00715.79
7.1.110.0110.00415.67
7.1.100.0040.00916.93
7.1.90.0060.00615.89
7.1.80.0060.00615.56
7.1.70.0040.00716.52
7.1.60.0040.01317.51
7.1.50.0100.01016.11
7.1.40.0070.00315.71
7.1.30.0070.00715.75
7.1.20.0060.00315.43
7.1.10.0100.00315.59
7.1.00.0020.04319.08
7.0.330.0110.00414.89
7.0.320.0110.00315.37
7.0.310.0030.01015.28
7.0.300.0070.00715.24
7.0.290.0040.00715.12
7.0.280.0090.00315.20
7.0.270.0090.00615.23
7.0.260.0060.00915.26
7.0.250.0070.00715.07
7.0.240.0000.00915.30
7.0.230.0030.00715.27
7.0.220.0000.01315.26
7.0.210.0030.00715.49
7.0.200.0210.00614.80
7.0.190.0030.01015.20
7.0.180.0080.00315.04
7.0.170.0030.01215.33
7.0.160.0090.00615.22
7.0.150.0070.00715.11
7.0.140.0070.03418.67
7.0.130.0000.01215.39
7.0.120.0050.00515.31
7.0.110.0030.01315.08
7.0.100.0030.00615.15
7.0.90.0040.00715.34
7.0.80.0060.00315.34
7.0.70.0060.01015.11
7.0.60.0060.04417.60
7.0.50.0020.02716.42
7.0.40.0050.03816.64
7.0.30.0100.02716.62
7.0.20.0230.03716.65
7.0.10.0030.04916.74
7.0.00.0050.02616.49
5.6.380.0060.00314.08
5.6.370.0030.00814.13
5.6.360.0000.00913.72
5.6.350.0030.01014.21
5.6.340.0070.00713.97
5.6.330.0060.00314.32
5.6.320.0040.01113.70
5.6.310.0070.00714.32
5.6.300.0030.01014.41
5.6.290.0000.01114.40
5.6.280.0070.03817.53
5.6.270.0030.01014.51
5.6.260.0000.00814.31
5.6.250.0070.00013.95
5.6.240.0080.00414.30
5.6.230.0000.01514.48
5.6.220.0080.00014.13
5.6.210.0070.04517.46
5.6.200.0080.03316.18
5.6.190.0030.04517.48
5.6.180.0180.02817.55
5.6.170.0180.02517.35
5.6.160.0050.03817.33
5.6.150.0070.02216.20
5.6.140.0130.03316.38
5.6.130.0040.03716.19
5.6.120.0140.04217.62
5.6.110.0080.04217.65
5.6.100.0100.03817.57
5.6.90.0030.02717.67
5.6.80.0040.02317.35
5.6.70.1730.02617.42
5.6.60.0090.00313.91
5.6.50.0030.00613.96
5.6.40.0060.00314.07
5.6.30.0000.01013.83
5.6.20.0030.00713.98
5.6.10.0030.00714.12
5.6.00.0030.00714.27
5.5.380.0030.00711.29
5.5.370.0090.00011.11
5.5.360.0030.00711.21
5.5.350.0050.04115.89
5.5.340.0010.04314.45
5.5.330.0050.02515.85
5.5.320.0190.02515.65
5.5.310.0090.03415.58
5.5.300.0060.03814.52
5.5.290.0050.04414.48
5.5.280.0100.02015.90
5.5.270.0030.02816.04
5.5.260.0060.04015.94
5.5.250.0100.03815.92
5.5.240.0070.04715.57
5.5.230.0040.00410.96
5.5.220.0000.01211.09
5.5.210.0030.01010.93
5.5.200.0040.00810.74
5.5.190.0080.00311.20
5.5.180.0030.00711.05
5.5.170.0000.00710.86
5.5.160.0030.00910.86
5.5.150.0060.00610.68
5.5.140.0050.00011.03
5.5.130.0060.00311.11
5.5.120.0030.00710.75
5.5.110.0060.00610.87
5.5.100.0030.01011.09
5.5.90.0060.00310.84
5.5.80.0060.00010.95
5.5.70.0090.00311.02
5.5.60.0050.00311.06
5.5.50.0000.00610.82
5.5.40.0030.00610.52
5.5.30.0000.00811.09
5.5.20.0040.00410.46
5.5.10.0000.00811.05
5.5.00.0070.00010.84
5.4.450.0100.02915.28
5.4.440.0520.02715.20
5.4.430.0260.03314.99
5.4.420.0140.02515.02
5.4.410.0050.03515.00
5.4.400.0100.03314.79
5.4.390.0130.02914.81
5.4.380.0180.03014.85
5.4.370.0120.03114.70
5.4.360.0230.02414.69
5.4.350.0150.02914.65
5.4.340.0130.03214.88
5.4.330.0040.00410.83
5.4.320.0170.03314.83
5.4.310.0130.03014.61
5.4.300.0230.02014.71
5.4.290.0170.02614.63
5.4.280.0180.03014.74
5.4.270.0180.03214.66
5.4.260.0200.02714.80
5.4.250.0170.03214.63
5.4.240.0170.03014.75
5.4.230.0220.02914.79
5.4.220.0120.03214.69
5.4.210.0170.02714.83
5.4.200.0150.02513.79
5.4.190.0100.03114.65
5.4.180.0200.02714.78
5.4.170.0170.02714.81
5.4.160.0170.03214.52
5.4.150.0120.03414.84
5.4.140.0150.03013.51
5.4.130.0150.03113.69
5.4.120.0170.02813.50
5.4.110.0220.02313.65
5.4.100.0150.02813.56
5.4.90.0100.03413.39
5.4.80.0120.03113.49
5.4.70.0180.02513.33
5.4.60.0150.02713.46
5.4.50.0160.02713.36
5.4.40.0120.03213.60
5.4.30.0170.02713.46
5.4.20.0200.02313.48
5.4.10.0160.02713.35
5.4.00.0100.03213.23
5.3.290.0150.03112.61
5.3.280.0180.02812.63
5.3.270.0180.02612.58
5.3.260.0180.03312.49
5.3.250.0130.03312.67
5.3.240.0170.03312.47
5.3.230.0210.02312.60
5.3.220.0170.02512.37
5.3.210.0180.02512.38
5.3.200.0170.02712.53
5.3.190.0180.03512.52
5.3.180.0180.02712.63
5.3.170.0180.02812.63
5.3.160.0130.03312.56
5.3.150.0180.02612.67
5.3.140.0150.02912.53
5.3.130.0120.03112.54
5.3.120.1870.03312.65
5.3.110.0300.01712.66
5.3.100.0180.02612.27
5.3.90.0180.02812.16
5.3.80.0130.02812.21
5.3.70.0150.02512.20
5.3.60.0190.02712.30
5.3.50.1250.03012.17
5.3.40.0150.02612.20
5.3.30.0180.02712.31
5.3.20.0160.02712.08
5.3.10.0160.02612.06
5.3.00.1270.03312.09
5.2.170.0180.02210.34
5.2.160.0080.02710.35
5.2.150.0120.02510.42
5.2.140.0100.02310.38
5.2.130.0170.01810.16
5.2.120.1100.02210.11
5.2.110.0120.02110.24
5.2.100.0140.01810.21
5.2.90.0100.02310.19
5.2.80.0130.02010.08
5.2.70.0130.02010.27
5.2.60.0880.02010.13
5.2.50.0150.02310.21
5.2.40.0150.01810.21
5.2.30.0080.02310.20
5.2.20.0100.02010.05
5.2.10.0150.0189.93
5.2.00.0160.0179.88
5.1.60.0110.0189.18
5.1.50.0150.0159.39
5.1.40.0100.0209.35
5.1.30.0800.0199.48
5.1.20.0120.0229.50
5.1.10.0140.0239.32
5.1.00.0080.0219.23
5.0.50.0110.0188.48
5.0.40.0120.0158.46
5.0.30.0060.0308.26
5.0.20.0050.0178.26
5.0.10.0050.0158.25
5.0.00.0090.0278.28
4.4.90.0070.0157.12
4.4.80.0080.0137.16
4.4.70.0080.0137.11
4.4.60.0080.0107.10
4.4.50.0080.0147.12
4.4.40.0040.0187.14
4.4.30.0050.0137.14
4.4.20.0050.0127.16
4.4.10.0070.0127.16
4.4.00.0030.0217.11
4.3.110.0050.0137.09
4.3.100.0050.0137.08
4.3.90.0050.0137.06
4.3.80.0070.0187.07
4.3.70.0060.0117.05
4.3.60.0070.0107.05
4.3.50.0030.0177.08
4.3.40.0080.0167.05
4.3.30.0000.0156.47
4.3.20.0020.0146.45
4.3.10.0040.0116.41
4.3.00.0020.0127.68