3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php> $employee_array[0] = "NSA"; $employee_array[1] = "Anonymous"; $employee_array[2] = "Isil"; $employee_array[3] = "Octavius"; echo "Two of my employees are " . $employee_array[0] . " & " . $employee_array[1]; echo "Two more employees of mine are" . $employee_array[2] . " & " . $employee_array[3]; ?>
based on OEh79

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.2.60.0030.01017.07
7.2.00.0080.00819.49
7.1.200.0000.01515.70
7.1.100.0030.00518.02
7.1.70.0120.00016.95
7.1.60.0100.01319.36
7.1.50.0160.00717.02
7.1.00.0070.07322.40
7.0.200.0000.00916.92
7.0.60.0130.05720.03
7.0.50.0070.08017.84
7.0.40.0130.07720.07
7.0.30.0400.05720.21
7.0.20.0070.05320.09
7.0.10.0100.04020.16
7.0.00.0000.05320.12
5.6.280.0000.06320.99
5.6.210.0070.05020.62
5.6.200.0000.08318.20
5.6.190.0030.08320.43
5.6.180.0330.07720.43
5.6.170.0300.04720.54
5.6.160.0130.08020.48
5.6.150.0030.04018.19
5.6.140.0030.08018.10
5.6.130.0100.08018.12
5.6.120.0070.08320.98
5.6.110.0070.06721.13
5.6.100.0030.07020.95
5.6.90.0100.07320.99
5.6.80.0100.04320.40
5.5.350.0200.07020.39
5.5.340.0070.08017.98
5.5.330.0170.05720.36
5.5.320.0300.08020.48
5.5.310.0270.05720.29
5.5.300.0070.07317.98
5.5.290.0070.07017.96
5.5.280.0130.07720.84
5.5.270.0070.03720.64
5.5.260.0070.07020.76
5.5.250.0070.04020.54
5.5.240.0200.07720.15
5.4.450.0070.05719.58
5.4.440.0630.07319.13
5.4.430.0630.05319.66
5.4.420.0600.04719.64
5.4.410.0670.06719.27
5.4.400.0830.07318.78
5.4.390.0670.06719.28
5.4.380.0570.06019.08
5.4.370.0400.05719.27
5.4.360.0630.05319.32
5.4.350.0630.06019.13
5.4.340.0730.04318.99
5.4.320.0630.05319.01
5.4.310.0530.05319.16
5.4.300.0500.05718.82
5.4.290.0570.05019.30
5.4.280.0670.05019.23
5.4.270.0630.06018.99
5.4.260.0500.06719.17
5.4.250.0700.05019.21
5.4.240.0700.05319.14
5.4.230.0730.05319.25
5.4.220.0630.08018.98
5.4.210.0670.06018.78
5.4.200.0500.06018.78
5.4.190.0670.06019.13
5.4.180.0500.05318.78
5.4.170.0600.07319.14
5.4.160.0530.05318.97
5.4.150.0670.05719.28
5.4.140.0700.05016.29
5.4.130.0600.04716.21
5.4.120.0630.04016.23
5.4.110.0670.05016.06
5.4.100.0600.05016.45
5.4.90.0600.05316.36
5.3.290.0530.06314.54
5.3.280.0670.08014.54
5.3.270.0800.08714.48
5.3.260.0800.06714.53
5.3.250.0630.05714.44
5.3.240.0700.05714.44
5.3.230.0630.05314.62
5.3.220.0630.04314.51
5.3.210.0530.05314.40
5.3.200.0630.05014.35
5.3.190.0830.03714.65