3v4l.org

run code in 200+ php & hhvm versions
<?php $a = "\t123456\t345\t575675\t676\t333"; for($i = 0; $i< 10; $i++){ $a .= $a; } $start = time(); $startMicro = microtime(); $result = explode("\t", $a)[0]; var_dump('Explode:' . ((time() - $start) + (microtime() - $startMicro) / 1000));
based on dEVvZ

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.0080.00816.62
7.3.00.0040.00716.68
7.2.130.0100.00716.77
7.2.120.0060.00916.89
7.2.110.0080.01016.80
7.2.100.0120.00416.93
7.2.90.0100.00516.87
7.2.80.0070.00816.83
7.2.70.0050.00816.82
7.2.60.0060.00616.83
7.2.50.0060.00716.76
7.2.40.0070.00616.89
7.2.30.0090.00817.02
7.2.20.0070.00816.96
7.2.10.0100.00516.71
7.2.00.0020.01317.45
7.1.250.0030.01015.74
7.1.240.0040.01115.80
7.1.230.0070.00715.87
7.1.220.0090.00615.57
7.1.210.0130.00615.82
7.1.200.0040.01215.57
7.1.190.0070.00715.59
7.1.180.0100.00715.80
7.1.170.0030.01115.69
7.1.160.0090.00315.57
7.1.150.0000.01215.79
7.1.140.0060.00915.73
7.1.130.0030.00915.97
7.1.120.0090.00615.54
7.1.110.0100.00315.77
7.1.100.0080.00615.65
7.1.90.0090.00315.64
7.1.80.0000.01415.48
7.1.70.0050.00716.36
7.1.60.0110.01017.37
7.1.50.0050.01416.37
7.1.40.0070.01415.92
7.1.30.0110.00415.69
7.1.20.0160.00315.73
7.1.10.0060.00615.62
7.1.00.0070.03818.91
7.0.330.0040.00715.39
7.0.320.0060.01215.39
7.0.310.0040.00815.62
7.0.300.0110.00415.34
7.0.290.0050.00515.27
7.0.280.0080.00815.40
7.0.270.0120.00615.36
7.0.260.0160.00315.52
7.0.250.0040.00615.49
7.0.240.0140.00315.44
7.0.230.0060.00315.20
7.0.220.0150.00315.36
7.0.210.0030.01215.52
7.0.200.0060.00615.94
7.0.190.0060.00915.33
7.0.180.0040.01115.05
7.0.170.0050.00815.32
7.0.160.0040.00915.20
7.0.150.0100.00615.54
7.0.140.0070.00715.47
7.0.130.0000.01215.40
7.0.120.0030.01315.55
7.0.110.0090.00615.20
7.0.100.0100.00715.38
7.0.90.0030.01015.49
7.0.80.0320.04017.92
7.0.70.0360.04517.94
7.0.60.0300.04217.94
7.0.50.0230.04218.16
7.0.40.0030.03016.78
7.0.30.0130.04316.87
7.0.20.0070.04216.57
7.0.10.0060.02416.57
7.0.00.0020.02716.81
5.6.380.0000.01215.38
5.6.370.0060.01315.26
5.6.360.0040.01114.84
5.6.350.0030.01315.11
5.6.340.0040.01115.22
5.6.330.0090.00915.05
5.6.320.0060.01015.12
5.6.310.0060.00915.13
5.6.300.0070.00715.21
5.6.290.0070.01115.27
5.6.280.0050.03818.29
5.6.270.0100.00715.22
5.6.260.0070.00714.92
5.6.250.0120.00015.07
5.6.240.0000.01515.00
5.6.230.0090.03018.22
5.6.220.0090.02918.29
5.6.210.0080.04018.20
5.6.200.0060.02918.49
5.6.190.0070.05018.39
5.6.180.0100.02718.56
5.6.170.0070.02318.43
5.6.160.0050.03118.33
5.6.150.0110.04418.63
5.6.140.0120.04318.32
5.6.130.0050.03018.57
5.6.120.0110.02318.36
5.6.110.0030.04418.42
5.6.100.0050.04918.51
5.6.90.0070.04218.33
5.6.80.0080.03818.09
5.6.70.0070.03218.14
5.6.60.0100.04218.05
5.6.50.0080.04518.21
5.6.40.0050.03918.02
5.6.30.0050.04418.09
5.6.20.0060.03118.05
5.6.10.0050.03517.96
5.6.00.0060.02818.11
5.5.380.0060.00611.98
5.5.370.0080.04016.39
5.5.360.0100.02116.61
5.5.350.0080.04016.66
5.5.340.0050.04616.62
5.5.330.0100.02916.66
5.5.320.0020.02816.59
5.5.310.0060.02516.63
5.5.300.0050.03716.63
5.5.290.0050.03716.67
5.5.280.0050.02616.57
5.5.270.0110.03616.66
5.5.260.0090.04116.58
5.5.250.0050.05016.45
5.5.240.0250.02516.39
5.5.230.0100.02316.34
5.5.220.0050.03716.19
5.5.210.0090.02716.38
5.5.200.0100.03516.24
5.5.190.0070.04416.33
5.5.180.0080.02516.31
5.5.170.0040.00811.74
5.5.160.0030.03216.34
5.5.150.0030.03316.21
5.5.140.0110.03816.08
5.5.130.0030.03016.22
5.5.120.0070.04216.20
5.5.110.0070.04616.44
5.5.100.0090.03016.32
5.5.90.0080.04116.25
5.5.80.0050.02516.34
5.5.70.0070.04016.15
5.5.60.0080.03816.28
5.5.50.0050.03916.32
5.5.40.0050.04516.24
5.5.30.0120.03716.11
5.5.20.0030.03516.21
5.5.10.0080.04216.29
5.5.00.0080.04016.29
5.4.450.0050.03015.73
5.4.440.0000.03715.88
5.4.430.0080.04115.89
5.4.420.0070.03715.77
5.4.410.0110.02615.92
5.4.400.0040.04215.66
5.4.390.0050.04015.77
5.4.380.0080.04115.79
5.4.370.0070.03715.60
5.4.360.0160.03715.56
5.4.350.0060.04115.60
5.4.340.0050.02315.65
5.4.330.0120.00011.55
5.4.320.0090.02315.65
5.4.310.0090.04215.77
5.4.300.0020.03615.66
5.4.290.0080.02815.74
5.4.280.0070.05015.68
5.4.270.0030.04515.77
5.4.260.0070.04015.73
5.4.250.0070.04015.66
5.4.240.0070.02715.61
5.4.230.0070.02515.76
5.4.220.0080.03515.58
5.4.210.0090.04115.64
5.4.200.0110.03615.54
5.4.190.0110.04215.80
5.4.180.0110.03515.59
5.4.170.0050.04515.61
5.4.160.0100.03215.67
5.4.150.0080.04115.77
5.4.140.0080.04014.39
5.4.130.0080.03714.48
5.4.120.0100.02714.35
5.4.110.0000.03914.41
5.4.100.0040.02314.30
5.4.90.0050.02414.33
5.4.80.0080.01914.46
5.4.70.0050.02614.43
5.4.60.0020.02614.35
5.4.50.0100.03914.35
5.4.40.0040.02414.44
5.4.30.0100.04014.19
5.4.20.0050.03814.19
5.4.10.0050.03614.20
5.4.00.0020.02914.05
5.3.290.0020.02512.44
5.3.280.0030.04212.41
5.3.270.0170.02512.41
5.3.260.0080.03712.38
5.3.250.0050.04012.41
5.3.240.0050.03812.42
5.3.230.0040.03012.34
5.3.220.0060.02712.36
5.3.210.0030.03812.39
5.3.200.0020.02712.39
5.3.190.0020.02612.33
5.3.180.0100.04012.44
5.3.170.0050.03212.42
5.3.160.0020.02912.39
5.3.150.0030.02212.40
5.3.140.0060.02312.38
5.3.130.0050.04112.32
5.3.120.0100.03212.38
5.3.110.0090.03912.37
5.3.100.0050.04012.12
5.3.90.0030.04312.13
5.3.80.0070.02512.13
5.3.70.0100.03412.10
5.3.60.0070.02612.13
5.3.50.0120.03312.07
5.3.40.0050.03912.07
5.3.30.0040.02911.95
5.3.20.0020.02911.97
5.3.10.0070.03811.92
5.3.00.0030.04311.87
5.2.170.0030.03310.65
5.2.160.0070.02010.70
5.2.150.0060.03310.71
5.2.140.0040.01610.71
5.2.130.0030.02010.69
5.2.120.0040.03210.65
5.2.110.0050.03210.60
5.2.100.0070.03310.58
5.2.90.0070.02010.56
5.2.80.0030.01910.64
5.2.70.0020.02010.64
5.2.60.0060.02310.67
5.2.50.0060.02310.64
5.2.40.0100.01310.56
5.2.30.0050.03210.56
5.2.20.0050.03010.62
5.2.10.0050.02110.58
5.2.00.0070.02810.56
5.1.60.0060.02810.56
5.1.50.0030.03110.56
5.1.40.0040.02810.56
5.1.30.0020.02710.56
5.1.20.0020.02510.56
5.1.10.0050.02210.56
5.1.00.0030.01510.56
5.0.50.0050.02310.56
5.0.40.0010.02310.56
5.0.30.0030.03210.56
5.0.20.0030.02510.56
5.0.10.0030.01810.56
5.0.00.0050.02710.56
4.4.90.0050.01510.56
4.4.80.0020.02010.56
4.4.70.0030.01810.56
4.4.60.0050.01610.56
4.4.50.0020.01610.56
4.4.40.0020.01910.56
4.4.30.0030.02010.56
4.4.20.0030.01810.56
4.4.10.0030.02010.56
4.4.00.0000.03110.56
4.3.110.0030.01810.56
4.3.100.0020.01410.56
4.3.90.0030.01710.56
4.3.80.0050.02710.56
4.3.70.0040.01510.56
4.3.60.0030.01010.56
4.3.50.0010.01110.56
4.3.40.0030.02210.56
4.3.30.0040.01710.56
4.3.20.0070.01210.56
4.3.10.0040.01310.56
4.3.00.0020.02010.56