3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $statuses = ['DELIVERED ', ' COLLECTED']; array_walk($statuses, create_function('&$val', '$val = trim($val);'));

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.0060.00616.11
7.3.00.0070.00816.54
7.2.130.0050.01116.66
7.2.120.0140.00516.82
7.2.110.0140.00016.69
7.2.100.0060.00616.79
7.2.90.0110.00616.47
7.2.80.0090.00916.73
7.2.70.0040.01116.61
7.2.60.0030.00916.67
7.2.50.0040.01116.49
7.2.40.0040.00816.72
7.2.30.0060.01016.77
7.2.20.0080.00916.79
7.2.10.0100.00716.72
7.2.00.0070.00617.46
7.1.250.0060.00815.52
7.1.240.0050.00515.87
7.1.230.0080.00315.72
7.1.220.0030.00915.71
7.1.210.0090.00315.82
7.1.200.0070.00315.77
7.1.190.0050.00515.82
7.1.180.0040.00715.66
7.1.170.0060.00915.71
7.1.160.0060.00615.53
7.1.150.0090.00015.72
7.1.140.0060.00615.72
7.1.130.0000.01115.51
7.1.120.0060.00315.77
7.1.110.0030.00715.70
7.1.100.0410.00816.09
7.1.90.0000.00815.81
7.1.80.0070.00715.68
7.1.70.0070.00716.42
7.1.60.0140.00517.63
7.1.50.0070.00716.20
7.1.40.0030.00615.56
7.1.30.0080.00315.63
7.1.20.0130.00015.60
7.1.10.0090.00615.70
7.1.00.0030.04218.82
7.0.330.0030.00715.07
7.0.320.0060.00615.44
7.0.310.0040.00814.94
7.0.300.0040.00415.17
7.0.290.0000.01115.34
7.0.280.0040.00815.26
7.0.270.0030.01015.28
7.0.260.0070.00715.27
7.0.250.0030.00915.34
7.0.240.0030.00915.26
7.0.230.0050.00514.96
7.0.220.0080.00415.18
7.0.210.0080.00415.25
7.0.200.0050.00516.04
7.0.190.0040.00715.57
7.0.180.0060.00815.41
7.0.170.0050.00515.37
7.0.160.0060.00615.36
7.0.150.0090.00315.50
7.0.140.0040.00415.00
7.0.130.0060.00615.43
7.0.120.0050.00215.31
7.0.110.0070.00715.42
7.0.100.0040.00415.54
7.0.90.0030.00615.32
7.0.80.0040.00415.16
7.0.70.0050.00515.27
7.0.60.0030.03217.69
7.0.50.0150.02016.70
7.0.40.0050.03016.81
7.0.30.0210.03116.72
7.0.20.0110.02316.87
7.0.10.0080.02716.80
7.0.00.0060.04216.68
5.6.380.0000.00814.57
5.6.370.0040.00714.28
5.6.360.0030.00714.00
5.6.350.0030.00914.13
5.6.340.0050.00314.37
5.6.330.0080.00414.05
5.6.320.0050.00314.16
5.6.310.0040.00714.50
5.6.300.0060.00614.00
5.6.290.0030.01013.86
5.6.280.0070.03317.59
5.6.270.0090.00613.96
5.6.260.0060.00914.34
5.6.250.0060.00614.50
5.6.240.0100.00014.38
5.6.230.0030.01013.96
5.6.220.0030.00914.14
5.6.210.0040.02317.54
5.6.200.0030.02416.16
5.6.190.0050.03317.34
5.6.180.0250.02517.45
5.6.170.0150.04117.31
5.6.160.0050.03117.49
5.6.150.0050.03216.22
5.6.140.0070.02216.25
5.6.130.0030.03816.13
5.6.120.0040.03517.53
5.6.110.0030.02517.66
5.6.100.0120.03517.50
5.6.90.0030.04017.54
5.6.80.0050.04417.17
5.6.70.0040.00714.04
5.6.60.0040.00413.86
5.6.50.0030.01014.21
5.6.40.0070.00714.09
5.6.30.0080.00314.24
5.6.20.0030.01014.05
5.6.10.0060.00314.02
5.6.00.0040.00414.05
5.5.380.0070.00011.20
5.5.370.0000.00911.11
5.5.360.0000.00711.05
5.5.350.1480.02715.63
5.5.340.0050.04414.58
5.5.330.0030.04615.65
5.5.320.0060.02715.71
5.5.310.0250.03315.63
5.5.300.0020.02314.51
5.5.290.0080.03514.65
5.5.280.0080.03715.99
5.5.270.0060.04115.88
5.5.260.0110.04115.86
5.5.250.0070.04015.77
5.5.240.0150.04015.54
5.5.230.0040.00411.04
5.5.220.0070.00411.02
5.5.210.0030.00310.94
5.5.200.0000.00910.90
5.5.190.0070.00410.96
5.5.180.0060.00010.90
5.5.170.0000.01110.90
5.5.160.0000.01211.00
5.5.150.0080.00311.05
5.5.140.0090.00310.99
5.5.130.0060.00611.12
5.5.120.0000.00910.95
5.5.110.0030.01011.11
5.5.100.0060.00611.02
5.5.90.0000.01210.94
5.5.80.0090.00010.90
5.5.70.0050.00511.08
5.5.60.0000.01110.99
5.5.50.0000.00811.13
5.5.40.0040.00711.11
5.5.30.0060.00310.90
5.5.20.0100.00011.13
5.5.10.0060.00610.90
5.5.00.0060.00610.90
5.4.450.0170.07719.49
5.4.440.0230.06719.59
5.4.430.0400.05719.58
5.4.420.0200.05719.36
5.4.410.0170.06019.20
5.4.400.0730.05719.16
5.4.390.0770.05719.14
5.4.380.0730.05319.04
5.4.370.0770.04319.38
5.4.360.0700.06718.85
5.4.350.0530.06319.27
5.4.340.0630.08319.21
5.4.320.0700.07018.98
5.4.310.0700.04319.14
5.4.300.0100.05319.29
5.4.290.0530.05719.39
5.4.280.0700.07719.13
5.4.270.0630.05319.36
5.4.260.0700.05019.39
5.4.250.0770.03718.98
5.4.240.0270.06019.35
5.4.230.0400.05319.13
5.4.220.0530.06318.86
5.4.210.0130.05719.16
5.4.200.0170.05319.25
5.4.190.0530.06319.16
5.4.180.0630.04719.07
5.4.170.0270.06019.22
5.4.160.0730.05718.85
5.4.150.0670.05019.13
5.4.140.0570.05016.44
5.4.130.0170.05016.34
5.4.120.0570.05316.50
5.4.110.0100.05716.38
5.4.100.0130.05316.51
5.4.90.0130.04716.63
5.3.290.0700.06714.70
5.3.280.0600.05314.47
5.3.270.0270.06014.48
5.3.260.0200.06714.48
5.3.250.0700.04314.45
5.3.240.0270.04714.54
5.3.230.0130.05714.54
5.3.220.0330.05014.40
5.3.210.0100.05714.50
5.3.200.0200.04714.60
5.3.190.0570.04314.54