3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = 2; $b= 3; $c = 56; $v = array($a, $b,$c); print_r($v);

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.0rc40.0400.00498.97
7.3.0rc30.0220.00916.47
7.3.0beta10.0070.00312.37
7.3.0alpha10.0280.00312.38
7.2.60.0100.00316.74
7.2.00.0030.01019.05
7.1.200.0080.00015.81
7.1.100.0040.00818.13
7.1.70.0050.00317.07
7.1.60.0060.01819.40
7.1.50.0130.01016.58
7.1.00.0030.04722.43
7.0.200.0270.00714.94
7.0.140.0070.09322.18
7.0.120.0000.07322.03
7.0.60.0030.06319.86
7.0.50.0030.04317.88
7.0.40.0030.04320.27
7.0.30.0130.04720.34
7.0.20.0230.05720.09
7.0.10.0200.05320.07
7.0.00.0070.08020.25
5.6.280.0030.07321.12
5.6.210.0130.08320.47
5.6.200.0000.04318.27
5.6.190.0070.09320.32
5.6.180.0230.03720.45
5.6.170.0230.05020.44
5.6.160.0070.06320.57
5.6.150.0070.05318.15
5.6.140.0030.04018.18
5.6.130.0030.08318.17
5.6.120.0130.03721.13
5.6.110.0070.07720.99
5.6.100.0000.04320.94
5.6.90.0030.07720.99
5.6.80.0070.06320.38
5.6.70.0030.06720.36
5.5.350.0200.05020.42
5.5.340.0130.04017.98
5.5.330.0100.08020.56
5.5.320.0230.08020.35
5.5.310.0170.05320.34
5.5.300.0000.04317.95
5.5.290.0070.08318.08
5.5.280.0070.04720.64
5.5.270.0170.07720.86
5.5.260.0130.07020.86
5.5.250.0070.07020.57
5.5.240.0070.07020.11
5.4.450.0470.04019.39
5.4.440.0600.05019.55
5.4.430.1000.04019.18
5.4.420.0630.03319.46
5.4.410.0670.03719.16
5.4.400.0530.04019.02
5.4.390.0530.04319.05
5.4.380.0630.04019.13
5.4.370.0770.03018.96
5.4.360.0870.03319.01
5.4.350.0500.04319.31
5.4.340.0600.02719.13
5.4.320.0130.04719.07
5.4.310.0630.03719.21
5.4.300.0330.04319.05
5.4.290.0630.03018.94
5.4.280.0670.04719.21
5.4.270.0170.04719.06
5.4.260.0230.05019.21
5.4.250.0430.04318.93
5.4.240.0330.04718.94
5.4.230.0730.04019.13
5.4.220.0500.04319.18
5.4.210.0470.03719.22
5.4.200.0830.02719.03
5.4.190.0400.04019.20
5.4.180.0400.04019.14
5.4.170.0400.04719.30
5.4.160.0530.04019.17
5.4.150.0600.03719.29
5.4.140.0570.03316.50
5.4.130.0870.03016.46
5.4.120.0630.04016.28
5.4.110.0830.03016.23
5.4.100.0570.05016.55
5.4.90.0630.03316.59
5.4.80.0930.05016.44
5.4.70.0670.03716.25
5.4.60.0570.03716.27
5.4.50.0330.03316.32
5.4.40.0430.04016.24
5.4.30.1000.03716.35
5.4.20.0500.03016.23
5.4.10.0270.04316.32
5.4.00.0670.03716.23
5.3.290.0370.06316.23
5.3.280.0630.04316.23
5.3.270.0570.04016.23
5.3.260.0900.02316.23
5.3.250.0730.04016.23
5.3.240.0400.05016.23
5.3.230.0600.04016.23
5.3.220.0730.03716.23
5.3.210.0670.04316.23
5.3.200.0700.03716.23
5.3.190.0700.03316.23
5.3.180.0900.03316.23
5.3.170.0770.06016.23
5.3.160.0530.03016.23
5.3.150.0870.02716.23
5.3.140.0970.02716.23
5.3.130.0830.03016.23
5.3.120.0200.04716.23
5.3.110.0600.03716.23
5.3.100.0830.03016.23
5.3.90.0770.03016.23
5.3.80.0630.04016.23
5.3.70.0830.04016.23
5.3.60.0570.03716.23
5.3.50.0230.04016.23
5.3.40.0770.03016.23
5.3.30.0730.04016.23
5.3.20.0730.03716.23
5.3.10.0370.03016.23
5.3.00.0930.02716.23
5.2.170.0370.03316.23
5.2.160.0670.03016.23
5.2.150.0330.03316.23
5.2.140.0700.03016.23
5.2.130.0530.02716.23
5.2.120.0170.03016.23
5.2.110.0470.03316.23
5.2.100.0900.03016.23
5.2.90.0300.04316.23
5.2.80.0670.03316.23
5.2.70.0870.03316.23
5.2.60.0470.02316.23
5.2.50.0800.03716.23
5.2.40.0370.03016.23
5.2.30.0700.03016.23
5.2.20.0330.03016.23
5.2.10.0270.02716.23
5.2.00.0400.02316.23
5.1.60.0400.03016.23
5.1.50.0470.02716.23
5.1.40.0500.01716.23
5.1.30.0400.02316.23
5.1.20.0670.02016.23
5.1.10.0270.02316.23
5.1.00.0570.02316.23
5.0.50.0130.02316.23
5.0.40.0270.01716.23
5.0.30.0170.02716.23
5.0.20.0230.01316.23
5.0.10.0130.02016.23
5.0.00.0330.03016.23
4.4.90.0270.01716.23
4.4.80.0370.01716.23
4.4.70.0330.01316.23
4.4.60.0130.01716.23
4.4.50.0130.02016.23
4.4.40.0100.02016.23
4.4.30.0130.01716.23
4.4.20.0270.01016.23
4.4.10.0330.04016.23
4.4.00.0100.02316.23
4.3.110.0170.01716.23
4.3.100.0100.01716.23
4.3.90.0100.01316.23
4.3.80.0030.02316.23
4.3.70.0200.00716.23
4.3.60.0030.02016.23
4.3.50.0030.02316.23
4.3.40.0200.02016.23
4.3.30.0000.01316.23
4.3.20.0070.01316.23
4.3.10.0000.01716.23
4.3.00.0100.01716.23