3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $arr[] = 'test'; function addToArray($arg1, $arg2){ $arr = []; $arr[] = $arg1; $arr[] = $arg2; print_r($arr); } addToArray('test', 'nichtJulian'); var_dump($extistiertnicht); $extistiertnicht[] ='Test'; print_R($extistiertnicht); echo $gibtsnicht + 9; echo substr('test', 0, 1);
based on iVYsf

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.01316.95
7.3.00.0060.00316.79
7.2.130.0030.00617.02
7.2.120.0040.01216.83
7.2.110.0030.01016.89
7.2.100.0070.00716.62
7.2.90.0080.00317.00
7.2.80.0070.00717.13
7.2.70.0090.00616.64
7.2.60.0070.00716.87
7.2.50.0080.00416.94
7.2.40.0070.00716.93
7.2.30.0060.00916.95
7.2.20.0080.00416.96
7.2.10.0090.00616.93
7.2.00.0050.00917.97
7.1.250.0030.01015.80
7.1.200.0070.00715.92
7.1.100.0080.00317.61
7.1.70.0030.00516.73
7.1.60.0110.01419.50
7.1.50.0130.01016.98
7.1.00.0070.07322.51
7.0.200.0030.00616.76
7.0.140.0030.07022.18
7.0.60.0100.08319.88
7.0.50.0030.04017.99
7.0.40.0100.04019.96
7.0.30.0430.05720.09
7.0.20.0300.07020.01
7.0.10.0370.07720.22
7.0.00.0070.06720.06
5.6.280.0000.07720.91
5.6.210.0200.07020.66
5.6.200.0070.06718.27
5.6.190.0030.08720.48
5.6.180.0270.07720.61
5.6.170.0270.08020.51
5.6.160.0170.06720.55
5.6.150.0030.04718.29
5.6.140.0000.05718.14
5.6.130.0070.08018.11
5.6.120.0070.05321.14
5.6.110.0000.06321.00
5.6.100.0030.07721.13
5.6.90.0170.06721.04
5.6.80.0130.05320.34
5.6.70.0030.06320.40
5.5.350.0200.07720.38
5.5.340.0000.04318.00
5.5.330.0030.09020.40
5.5.320.0270.04320.41
5.5.310.0330.07320.27
5.5.300.0030.08017.98
5.5.290.0030.07717.98
5.5.280.0000.04320.68
5.5.270.0030.08720.80
5.5.260.0030.07320.84
5.5.250.0100.07720.68
5.5.240.0070.03720.37
5.4.450.0800.05319.38
5.4.440.0100.05719.53
5.4.430.0170.06719.57
5.4.420.0800.08019.44
5.4.410.0730.06719.34
5.4.400.0100.06318.82
5.4.390.0230.04718.55
5.4.380.0200.06018.47
5.4.370.0330.05318.71
5.4.360.0200.05318.68
5.4.350.0200.05318.71
5.4.340.0170.05318.68
5.4.320.0130.06018.46
5.4.310.0200.05018.70
5.4.300.0300.05018.50
5.4.290.0230.04718.70
5.4.280.0270.04718.55
5.4.270.0130.05718.72
5.4.260.0100.06018.69
5.4.250.0200.05318.44
5.4.240.0230.05318.80
5.4.230.0170.06018.45
5.4.220.0100.06718.48
5.4.210.0270.05318.75
5.4.200.0230.04316.64
5.4.190.0170.06018.79
5.4.180.0070.06318.79
5.4.170.0200.05718.43
5.4.160.0130.05718.42
5.4.150.0230.05318.75
5.4.140.0230.04716.43
5.4.130.0100.05316.18
5.4.120.0200.04716.27
5.4.110.0170.05316.30
5.4.100.0230.04316.29
5.4.90.0270.04716.21
5.4.80.0330.03716.28
5.4.70.0230.04716.29
5.4.60.0200.04716.24
5.4.50.0300.04716.18
5.4.40.0130.05716.27
5.4.30.0300.03716.26
5.4.20.0200.05016.20
5.4.10.0270.03716.14
5.4.00.0170.04715.65
5.3.290.0170.06014.68
5.3.280.0100.05714.74
5.3.270.0230.04714.73
5.3.260.0170.05714.73
5.3.250.0230.04314.64
5.3.240.0200.04714.81
5.3.230.0200.06014.60
5.3.220.0230.04314.72
5.3.210.0100.06014.63
5.3.200.0200.05014.59
5.3.190.0170.05314.76
5.3.180.0330.04014.74
5.3.170.0130.05314.55
5.3.160.0230.04714.58
5.3.150.0170.05714.77
5.3.140.0170.05014.68
5.3.130.0200.05014.65
5.3.120.0170.05714.64
5.3.110.0170.05714.67
5.3.100.0170.05714.03
5.3.90.0270.04314.23
5.3.80.0230.04314.14
5.3.70.0200.04714.21
5.3.60.0100.06314.04
5.3.50.0230.04314.06
5.3.40.0200.05714.00
5.3.30.0170.05713.92
5.3.20.0230.04313.80
5.3.10.0300.04313.79
5.3.00.0100.05713.75
5.2.170.0170.03711.35
5.2.160.0130.04011.21
5.2.150.0170.04011.16
5.2.140.0130.04311.34
5.2.130.0170.03711.22
5.2.120.0130.04011.22
5.2.110.0100.04311.30
5.2.100.0170.03711.12
5.2.90.0170.04011.29
5.2.80.0100.04711.08
5.2.70.0130.04011.21
5.2.60.0070.05011.24
5.2.50.0100.04311.12
5.2.40.0170.04011.13
5.2.30.0100.04311.09
5.2.20.0170.03311.02
5.2.10.0130.03710.92
5.2.00.0070.04710.70
5.1.60.0100.03310.04
5.1.50.0000.04310.01
5.1.40.0170.03010.04
5.1.30.0100.05310.44
5.1.20.0170.03010.34
5.1.10.0070.04710.09
5.1.00.0070.04010.24
5.0.50.0130.0238.58
5.0.40.0170.0308.51
5.0.30.0070.0578.20
5.0.20.0030.0308.22
5.0.10.0100.0238.36
5.0.00.0030.0578.29
4.4.90.0130.0135.90
4.4.80.0100.0175.88
4.4.70.0100.0175.93
4.4.60.0000.0275.88
4.4.50.0070.0205.91
4.4.40.0070.0336.01
4.4.30.0070.0205.91
4.4.20.0030.0275.94
4.4.10.0030.0276.00
4.4.00.0030.0376.00
4.3.110.0100.0205.89
4.3.100.0030.0235.84
4.3.90.0070.0205.89
4.3.80.0070.0335.80
4.3.70.0070.0205.81
4.3.60.0030.0275.91
4.3.50.0070.0205.79
4.3.40.0100.0305.79
4.3.30.0000.0274.64
4.3.20.0030.0204.54
4.3.10.0030.0234.55
4.3.00.0130.0207.27