3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $string = '25,34,45,46'; $array = explode(",", $string); echo array_sum($array); ?>

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.0170.01016.41
7.1.200.0000.01415.67
7.1.90.0000.01418.21
7.1.80.0090.00617.91
7.1.70.0020.00817.11
7.1.60.0190.00727.06
7.1.50.0770.01825.81
7.1.40.0140.01434.33
7.1.30.0210.01434.43
7.1.20.0240.00734.41
7.1.10.0030.01116.48
7.1.00.0050.04219.57
7.0.230.0070.01017.37
7.0.220.0100.00717.88
7.0.210.0100.00716.67
7.0.200.0040.00616.74
7.0.190.0000.01216.57
7.0.180.0050.00816.39
7.0.170.0000.01616.22
7.0.160.0030.01316.10
7.0.150.0060.00616.39
7.0.140.0030.04119.22
7.0.130.0060.00916.57
7.0.120.0070.01016.31
7.0.110.0060.01116.13
7.0.100.0030.01316.28
7.0.90.0070.00716.10
7.0.80.0050.00816.19
7.0.70.0020.04818.97
7.0.60.0060.03618.88
7.0.50.0050.04419.17
7.0.40.0020.04418.16
7.0.30.0090.02318.11
7.0.20.0080.03418.15
7.0.10.0020.04518.19
7.0.00.0050.04618.18
hhvm-3.21.00.0370.21491.63
hhvm-3.20.20.0740.15991.34
hhvm-3.19.20.0610.20290.98
hhvm-3.18.40.0400.18289.88
hhvm-3.17.30.0730.19388.90
hhvm-3.15.40.0600.15286.68
hhvm-3.13.20.0690.17398.23
hhvm-3.12.140.0800.14997.16
hhvm-3.11.10.0660.22489.25
hhvm-3.10.10.0530.16484.06
5.6.300.0130.05420.73
5.6.290.0100.05520.89
5.6.280.0080.06820.91
5.6.270.0100.07720.95
5.6.260.0130.07520.85
5.6.250.0100.05820.75
5.6.240.0060.07620.72
5.6.230.0070.06120.84
5.6.220.0130.05420.69
5.6.210.0140.07620.80
5.6.200.0060.07620.87
5.6.190.0120.06820.98
5.6.180.0050.07120.90
5.6.170.0130.06820.85
5.6.160.0030.07420.90
5.6.150.0100.06320.92
5.6.140.0140.07120.92
5.6.130.0100.06920.94
5.6.120.0120.07820.93
5.6.110.0130.06820.96
5.6.100.0030.07020.85
5.6.90.0090.06520.84
5.6.80.0120.05720.35
5.6.70.0120.06120.23
5.6.60.0070.05820.19
5.6.50.0080.07120.33
5.6.40.0120.06720.21
5.6.30.0050.06320.23
5.6.20.0080.06520.24
5.6.10.0030.07020.32
5.6.00.0090.06720.28
5.5.380.0130.06917.37
5.5.370.0040.06017.45
5.5.360.0080.07118.92
5.5.350.0130.05018.88
5.5.340.0090.05819.36
5.5.330.0070.07219.40
5.5.320.0140.04719.40
5.5.310.0070.05719.44
5.5.300.0110.06719.37
5.5.290.0080.05919.38
5.5.280.0050.06119.39
5.5.270.0060.06619.29
5.5.260.0090.04819.35
5.5.250.0070.07419.18
5.5.240.0120.05218.76
5.5.230.0050.06918.75
5.5.220.0140.06818.59
5.5.210.0160.04418.74
5.5.200.0090.05918.73
5.5.190.0090.06418.78
5.5.180.0150.07218.65
5.5.160.0090.06918.62
5.5.150.0120.06818.73
5.5.140.0110.06018.69
5.5.130.0090.06718.69
5.5.120.0090.05318.69
5.5.110.0050.05618.67
5.5.100.0060.05418.60
5.5.90.0050.05018.59
5.5.80.0070.06218.57
5.5.70.0120.04418.60
5.5.60.0130.06718.68
5.5.50.0110.05718.67
5.5.40.0100.04918.62
5.5.30.0130.06018.54
5.5.20.0080.06518.66
5.5.10.0080.04918.60
5.5.00.0100.06718.62
5.4.450.0100.07119.42
5.4.440.0110.06519.42
5.4.430.0110.06019.37
5.4.420.0070.06519.32
5.4.410.0110.07119.23
5.4.400.0150.04418.99
5.4.390.0050.05818.99
5.4.380.0060.05719.07
5.4.370.0080.06218.98
5.4.360.0030.06919.00
5.4.350.0070.06519.12
5.4.340.0080.05318.87
5.4.320.0100.05519.02
5.4.310.0120.05919.09
5.4.300.0050.07319.10
5.4.290.0060.07118.88
5.4.280.0110.05419.02
5.4.270.0090.06118.99
5.4.260.0020.06919.00
5.4.250.0110.05118.95
5.4.240.0040.04618.97
5.4.230.0040.06618.93
5.4.220.0070.06519.02
5.4.210.0090.06118.92
5.4.200.0080.06218.97
5.4.190.0170.05818.99
5.4.180.0050.07018.95
5.4.170.0100.06118.95
5.4.160.0070.06919.07
5.4.150.0120.06618.80
5.4.140.0080.06416.39
5.4.130.0060.05916.39
5.4.120.0110.04916.40
5.4.110.0100.05816.35
5.4.100.0050.05116.34
5.4.90.0110.05516.44
5.4.80.0130.05716.37
5.4.70.0080.06716.31
5.4.60.0070.06016.38
5.4.50.0080.05216.36
5.4.40.0080.06516.47
5.4.30.0070.05516.34
5.4.20.0090.05816.41
5.4.10.0080.05816.25
5.4.00.0050.06515.82
5.3.290.0050.05114.71
5.3.280.0050.05614.47
5.3.270.0090.06014.67
5.3.260.0080.06114.61
5.3.250.0080.06014.64
5.3.240.0090.06014.66
5.3.230.0130.05114.55
5.3.220.0080.04514.54
5.3.210.0080.05314.57
5.3.200.0030.05014.58
5.3.190.0030.06514.46
5.3.180.0120.05714.51
5.3.170.0100.06514.49
5.3.160.0110.05414.65
5.3.150.0070.07114.54
5.3.140.0070.06814.60
5.3.130.0090.06314.46
5.3.120.0080.06814.57
5.3.110.0030.07014.59
5.3.100.0110.04413.99
5.3.90.0050.05713.88
5.3.80.0050.04514.05
5.3.70.0020.06413.99
5.3.60.0070.06913.99
5.3.50.0050.06813.90
5.3.40.0100.05813.94
5.3.30.0030.06513.97
5.3.20.0110.05913.74
5.3.10.0130.05513.65
5.3.00.0070.05813.49
5.2.170.0050.04711.30
5.2.160.0050.05711.20
5.2.150.0080.05111.26
5.2.140.0070.05711.22
5.2.130.0050.05211.17
5.2.120.0100.05011.29
5.2.110.0020.04311.28
5.2.100.0050.04811.32
5.2.90.0020.04411.19
5.2.80.0060.04211.32
5.2.70.0070.05211.20
5.2.60.0070.05011.15
5.2.50.0080.04711.24
5.2.40.0080.04511.23
5.2.30.0050.05211.20
5.2.20.0030.05711.24
5.2.10.0080.04711.17
5.2.00.0050.05110.96
5.1.60.0080.04510.65
5.1.50.0050.04710.73
5.1.40.0030.05110.74
5.1.30.0060.04310.91
5.1.20.0060.04510.96
5.1.10.0030.04110.69
5.1.00.0060.03610.63
5.0.50.0030.04110.07
5.0.40.0020.03910.02
5.0.30.0050.05110.02
5.0.20.0090.03310.02
5.0.10.0040.03610.02
5.0.00.0070.04010.02
4.4.90.0050.02610.02
4.4.80.0000.02810.02
4.4.70.0030.02810.02
4.4.60.0070.02610.02
4.4.50.0020.03410.02
4.4.40.0020.04710.02
4.4.30.0050.02910.02
4.4.20.0080.02410.02
4.4.10.0070.02810.02
4.4.00.0000.04510.02
4.3.110.0060.02310.02
4.3.100.0040.02910.02
4.3.90.0030.02710.02
4.3.80.0030.04210.02
4.3.70.0020.02910.02
4.3.60.0070.02810.02
4.3.50.0000.03210.02
4.3.40.0040.04510.02
4.3.30.0070.02410.02
4.3.20.0020.03110.02
4.3.10.0030.03310.02
4.3.00.0070.02610.02