3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php print current(preg_split('/, /', '12341234, klasdjf', 1));

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.0070.00498.97
7.3.0rc30.0220.01016.78
7.2.60.0120.00317.05
7.2.00.0150.00819.55
7.1.100.0060.00617.98
7.1.70.0000.00816.94
7.1.60.0040.02219.46
7.1.50.0100.01017.04
7.1.00.0030.07722.55
7.0.200.0030.00616.86
7.0.140.0130.06322.08
7.0.120.0030.03321.93
7.0.110.0000.04022.11
7.0.100.0030.03321.93
7.0.90.0000.04321.98
7.0.80.0000.04322.00
7.0.70.0070.04322.15
7.0.60.0000.03321.96
7.0.50.0000.04022.13
7.0.40.0000.04020.17
7.0.30.0000.04320.04
7.0.20.0070.04319.93
7.0.10.0070.03719.93
7.0.00.0000.04719.96
5.6.280.0100.08321.09
5.6.270.0000.04721.00
5.6.260.0070.03320.91
5.6.250.0030.06320.93
5.6.240.0000.04321.05
5.6.230.0030.05320.81
5.6.220.0000.04020.80
5.6.210.0000.03320.89
5.6.200.0000.04320.75
5.6.190.0030.04720.88
5.6.180.0030.04321.02
5.6.170.0000.04321.04
5.6.160.0030.04020.97
5.6.150.0070.07020.78
5.6.140.0030.04020.87
5.6.130.0000.06021.02
5.6.120.0000.04320.69
5.6.110.0030.04320.97
5.6.100.0000.04320.86
5.6.90.0030.06320.92
5.6.80.0030.03720.18
5.6.70.0030.06020.15
5.6.60.0030.04320.32
5.6.50.0000.04020.24
5.6.40.0000.05020.39
5.6.30.0070.04720.39
5.6.20.0070.06320.31
5.6.10.0000.04320.10
5.6.00.0000.04020.33
5.5.380.0030.05717.52
5.5.370.0030.05017.44
5.5.360.0000.06017.57
5.5.350.0030.05317.62
5.5.340.0000.05317.77
5.5.330.0030.03717.73
5.5.320.0030.07717.99
5.5.310.0030.05718.16
5.5.300.0030.03717.86
5.5.290.0000.08717.98
5.5.280.0030.04017.85
5.5.270.0000.04018.09
5.5.260.0000.04317.99
5.5.250.0030.04017.58
5.5.240.0000.03717.55
5.5.230.0000.04017.51
5.5.220.0000.05317.54
5.5.210.0100.07017.54
5.5.200.0030.03717.46
5.5.190.0030.04017.44
5.5.180.0000.07717.08
5.5.160.0030.05317.23
5.5.150.0000.03717.14
5.5.140.0030.04017.20
5.5.130.0000.04717.20
5.5.120.0070.06017.59
5.5.110.0030.03717.33
5.5.100.0030.03717.39
5.5.90.0030.03317.39
5.5.80.0030.04017.40
5.5.70.0030.03317.40
5.5.60.0030.04717.27
5.5.50.0030.04017.37
5.5.40.0030.03317.10
5.5.30.0000.03717.13
5.5.20.0070.03317.33
5.5.10.0000.04317.25
5.5.00.0000.03717.26
5.4.450.0000.04319.40
5.4.440.0030.03719.39
5.4.430.0030.03719.30
5.4.420.0030.07319.25
5.4.410.0000.04319.22
5.4.400.0070.03719.02
5.4.390.0030.05719.03
5.4.380.0000.07718.96
5.4.370.0000.03718.99
5.4.360.0070.04018.98
5.4.350.0000.03719.04
5.4.340.0100.08018.95
5.4.320.0000.05318.86
5.4.310.0000.04719.02
5.4.300.0000.03718.98
5.4.290.0000.03718.89
5.4.280.0030.03718.93
5.4.270.0000.04018.95
5.4.260.0000.03719.15
5.4.250.0000.03719.01
5.4.240.0000.03719.03
5.4.230.0030.04019.04
5.4.220.0030.03718.96
5.4.210.0070.03318.87
5.4.200.0000.03718.86
5.4.190.0000.06318.96
5.4.180.0030.05719.11
5.4.170.0000.04319.03
5.4.160.0000.03718.95
5.4.150.0030.04319.02
5.4.140.0030.05016.27
5.4.130.0000.04016.11
5.4.120.0030.03316.29
5.4.110.0000.04316.45
5.4.100.0030.03316.04
5.4.90.0000.03716.23
5.4.80.0000.03716.44
5.4.70.0000.06016.42
5.4.60.0030.03316.29
5.4.50.0030.05716.01
5.4.40.0030.06316.47
5.4.30.0000.04316.43
5.4.20.0000.06016.39
5.4.10.0030.05016.43
5.4.00.0070.03315.86
5.3.290.0000.04314.66
5.3.280.0000.03014.45
5.3.270.0000.04314.50
5.3.260.0030.04714.60
5.3.250.0000.03314.61
5.3.240.0070.03014.62
5.3.230.0030.03314.60
5.3.220.0070.03014.66
5.3.210.0070.04714.50
5.3.200.0070.03314.46
5.3.190.0000.06314.47
5.3.180.0000.04014.57
5.3.170.0000.03714.48
5.3.160.0000.03714.41
5.3.150.0070.04314.38
5.3.140.0000.03714.55
5.3.130.0000.03714.56
5.3.120.0000.05014.43
5.3.110.0000.04014.64
5.3.100.0000.04313.89
5.3.90.0000.03714.05
5.3.80.0070.03013.95
5.3.70.0030.03314.02
5.3.60.0030.04314.00
5.3.50.0000.03713.83
5.3.40.0000.03314.02
5.3.30.0000.03713.91
5.3.20.0000.03013.59
5.3.10.0030.06713.44
5.3.00.0000.03713.55
5.2.170.0000.03011.13
5.2.160.0000.03011.29
5.2.150.0000.04711.08
5.2.140.0030.02711.05
5.2.130.0030.04311.01
5.2.120.0000.04011.16
5.2.110.0000.03711.02
5.2.100.0000.03310.88
5.2.90.0030.02710.88
5.2.80.0000.03011.08
5.2.70.0000.03010.88
5.2.60.0030.04711.07
5.2.50.0000.03310.82
5.2.40.0000.03710.90
5.2.30.0000.03310.91
5.2.20.0000.02710.90
5.2.10.0000.03710.98
5.2.00.0000.03710.72
5.1.60.0030.0279.93
5.1.50.0000.0439.97
5.1.40.0000.03710.14
5.1.30.0000.02710.21
5.1.20.0030.02710.27
5.1.10.0000.03310.03
5.1.00.0000.02310.02
5.0.50.0000.0209.66
5.0.40.0030.0209.66
5.0.30.0000.0309.66
5.0.20.0000.0239.66
5.0.10.0030.0209.66
5.0.00.0000.0309.66
4.4.90.0000.0179.66
4.4.80.0000.0179.66
4.4.70.0000.0239.66
4.4.60.0030.0209.66
4.4.50.0030.0209.66
4.4.40.0000.0479.66
4.4.30.0000.0339.66
4.4.20.0030.0209.66
4.4.10.0000.0139.66
4.4.00.0000.0239.66
4.3.110.0030.0209.66
4.3.100.0000.0139.66
4.3.90.0000.0279.66
4.3.80.0000.0239.66
4.3.70.0030.0239.66
4.3.60.0000.0139.66
4.3.50.0030.0139.66
4.3.40.0000.0309.66
4.3.30.0000.0139.66
4.3.20.0030.0139.66
4.3.10.0000.0239.66
4.3.00.0030.0279.66