3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $name = 'CFE 2012 DECL INITIAL.pdf'; $extension = 'pdf'; $name = substr($name, 0, (strlen($name)-strlen($extension)-1)); var_dump($name);
based on X9bOD

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.0070.00716.83
7.2.00.0180.01119.29
7.1.200.0080.00415.80
7.1.100.0000.00817.91
7.1.70.0000.01417.20
7.1.60.0070.01719.22
7.1.50.0070.00716.63
7.1.00.0070.07322.33
7.0.200.0000.00716.93
7.0.140.0070.04022.11
7.0.60.0070.06719.85
7.0.50.0130.07717.80
7.0.40.0070.04020.16
7.0.30.0270.06320.21
7.0.20.0200.04320.00
7.0.10.0100.08320.00
7.0.00.0130.08020.20
5.6.280.0000.07721.12
5.6.210.0070.07720.64
5.6.200.0100.07718.12
5.6.190.0130.08720.43
5.6.180.0330.04320.35
5.6.170.0100.05720.38
5.6.160.0030.09020.36
5.6.150.0030.07018.18
5.6.140.0100.05718.20
5.6.130.0100.07718.21
5.6.120.0130.07720.89
5.6.110.0100.08020.89
5.6.100.0070.07321.00
5.6.90.0170.04720.98
5.6.80.0100.08020.39
5.5.350.0270.07320.35
5.5.340.0070.04717.95
5.5.330.0030.05720.40
5.5.320.0100.04020.34
5.5.310.0300.07720.17
5.5.300.0100.04017.89
5.5.290.0100.08017.92
5.5.280.0070.05320.82
5.5.270.0030.09020.93
5.5.260.0130.05320.75
5.5.250.0100.05020.77
5.5.240.0100.07020.03
5.4.450.0700.05719.40
5.4.440.0730.06719.46
5.4.430.0200.06019.33
5.4.420.0830.06019.49
5.4.410.0130.05019.35
5.4.400.0870.04319.16
5.4.390.0800.05318.89
5.4.380.0200.06018.55
5.4.370.0230.05018.49
5.4.360.0030.06318.56
5.4.350.0130.06318.72
5.4.340.0230.05018.72
5.4.320.0300.04318.67
5.4.310.0230.04718.77
5.4.300.0170.05018.52
5.4.290.0170.05018.56
5.4.280.0100.05718.71
5.4.270.0130.05718.49
5.4.260.0130.06318.47
5.4.250.0130.06018.45
5.4.240.0170.06018.58
5.4.230.0270.04718.77
5.4.220.0130.06018.68
5.4.210.0270.04318.57
5.4.200.0130.05316.63
5.4.190.0130.06018.71
5.4.180.0170.06018.50
5.4.170.0200.06018.59
5.4.160.0100.06318.54
5.4.150.0270.06018.69
5.4.140.0230.05316.25
5.4.130.0200.07316.31
5.4.120.0200.05716.26
5.4.110.0300.04716.14
5.4.100.0230.05016.11
5.4.90.0230.05316.04
5.4.80.0330.05016.04
5.4.70.0200.05716.09
5.4.60.0270.04316.21
5.4.50.0200.04716.31
5.4.40.0170.06016.32
5.4.30.0170.05716.22
5.4.20.0200.05016.11
5.4.10.0230.05316.18
5.4.00.0230.04715.59
5.3.290.0200.05314.63
5.3.280.0170.05314.52
5.3.270.0270.04714.50
5.3.260.0270.04714.51
5.3.250.0330.04314.55
5.3.240.0270.05014.69
5.3.230.0200.05014.57
5.3.220.0400.04314.52
5.3.210.0130.05714.66
5.3.200.0230.05014.54
5.3.190.0270.05314.48
5.3.180.0030.06714.56
5.3.170.0170.05314.66
5.3.160.0130.06314.45
5.3.150.0230.05314.54
5.3.140.0200.05014.55
5.3.130.0270.05314.54
5.3.120.0270.05014.45
5.3.110.0200.05714.57
5.3.100.0300.04014.13
5.3.90.0200.04714.01
5.3.80.0130.05713.91
5.3.70.0130.05714.00
5.3.60.0200.05313.93
5.3.50.0230.04713.85
5.3.40.0230.04313.92
5.3.30.0100.05713.90
5.3.20.0270.04013.66
5.3.10.0230.04713.56
5.3.00.0230.04713.71
5.2.170.0130.04311.28
5.2.160.0200.03711.14
5.2.150.0170.04011.15
5.2.140.0170.05011.10
5.2.130.0170.04311.06
5.2.120.0100.04311.25
5.2.110.0170.03711.14
5.2.100.0200.05311.24
5.2.90.0100.05011.07
5.2.80.0170.04311.13
5.2.70.0130.05311.00
5.2.60.0130.04311.08
5.2.50.0100.04710.94
5.2.40.0100.04311.07
5.2.30.0130.04711.12
5.2.20.0070.05311.09
5.2.10.0130.04010.85
5.2.00.0100.04310.85
5.1.60.0070.04010.04
5.1.50.0070.0409.96
5.1.40.0170.0309.98
5.1.30.0100.04010.43
5.1.20.0130.03710.39
5.1.10.0130.03310.10
5.1.00.0100.03710.21
5.0.50.0130.0238.54
5.0.40.0070.0338.45
5.0.30.0070.0508.25
5.0.20.0000.0338.19
5.0.10.0070.0308.36
5.0.00.0100.0408.15
4.4.90.0030.0276.74
4.4.80.0170.0176.74
4.4.70.0070.0236.74
4.4.60.0030.0276.74
4.4.50.0070.0206.74
4.4.40.0030.0406.74
4.4.30.0030.0236.74
4.4.20.0070.0236.74
4.4.10.0030.0236.74
4.4.00.0070.0336.74
4.3.110.0100.0206.74
4.3.100.0070.0206.74
4.3.90.0030.0236.74
4.3.80.0100.0306.74
4.3.70.0130.0136.74
4.3.60.0030.0236.74
4.3.50.0070.0206.74
4.3.40.0130.0276.74
4.3.30.0030.0236.74
4.3.20.0000.0276.74
4.3.10.0030.0236.74
4.3.00.0170.0207.57