3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(preg_replace('/^(-)?(0+)/', '$1' , "-00010px"));

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.0580.01316.47
7.3.00.0170.01016.41
7.2.130.0400.01016.75
7.2.120.0330.00716.15
7.2.110.0090.00916.58
7.2.100.0210.00716.62
7.2.90.0140.00916.40
7.2.80.0070.01016.63
7.2.70.0170.00716.42
7.2.60.0100.00716.69
7.2.50.0110.01416.48
7.2.40.0340.00716.77
7.2.30.0240.01016.44
7.2.20.0220.00316.66
7.2.10.0130.00716.43
7.2.00.0120.00918.15
7.1.250.0230.01215.89
7.1.200.0100.00315.80
7.1.100.0070.00318.18
7.1.70.0070.00317.32
7.1.60.0040.02119.50
7.1.50.0070.00416.97
7.1.00.0070.07322.53
7.0.200.0180.00916.32
7.0.140.0030.05022.12
7.0.60.0130.07719.94
7.0.50.0070.03717.84
7.0.40.0070.08020.10
7.0.30.0270.06720.23
7.0.20.0200.04320.23
7.0.10.0200.06320.10
7.0.00.0030.04320.10
5.6.280.0100.06721.14
5.6.210.0130.08020.46
5.6.200.0030.04018.20
5.6.190.0030.08020.41
5.6.180.0500.06720.67
5.6.170.0100.04720.40
5.6.160.0130.07720.48
5.6.150.0070.06718.15
5.6.140.0030.04318.12
5.6.130.0130.06718.20
5.6.120.0030.04321.11
5.6.110.0070.08720.97
5.6.100.0000.09320.88
5.6.90.0130.07021.03
5.6.80.0130.07320.52
5.5.350.0130.05020.52
5.5.340.0070.07017.96
5.5.330.0000.04320.57
5.5.320.0330.07320.29
5.5.310.0200.03720.29
5.5.300.0170.07317.91
5.5.290.0100.08017.98
5.5.280.0130.05320.97
5.5.270.0200.07020.84
5.5.260.0030.04020.75
5.5.250.0000.05020.68
5.5.240.0270.07720.36
5.4.450.0570.05319.47
5.4.440.0870.05719.59
5.4.430.0170.05319.10
5.4.420.0970.05019.53
5.4.410.0330.07319.44
5.4.400.0530.04718.61
5.4.390.0530.06318.72
5.4.380.0530.06318.68
5.4.370.0370.06718.49
5.4.360.0200.07018.57
5.4.350.0500.05318.49
5.4.340.0330.05718.71
5.4.320.0570.06718.76
5.4.310.0570.07018.68
5.4.300.0470.07318.57
5.4.290.0470.04318.62
5.4.280.0370.06318.69
5.4.270.0300.05318.70
5.4.260.0500.06718.65
5.4.250.0430.08318.69
5.4.240.0470.09318.69
5.4.230.0430.05318.75
5.4.220.0600.05018.54
5.4.210.0470.06018.71
5.4.200.0500.05016.55
5.4.190.0470.07018.60
5.4.180.0600.04718.47
5.4.170.0370.05318.68
5.4.160.0370.05718.44
5.4.150.0430.05318.50
5.4.140.0200.05716.16
5.4.130.0430.04016.42
5.4.120.0330.05016.05
5.4.110.0300.05016.16
5.4.100.0430.04316.34
5.4.90.0370.05316.30
5.4.80.0470.06316.06
5.4.70.0430.05016.27
5.4.60.0300.05716.09
5.4.50.0330.05316.21
5.4.40.0670.03716.28
5.4.30.0370.05316.30
5.4.20.0300.05716.12
5.4.10.0330.05016.10
5.4.00.0330.05315.61
5.3.290.0270.05714.73
5.3.280.0400.05014.52
5.3.270.0370.07314.59
5.3.260.0470.07014.56
5.3.250.0370.07014.53
5.3.240.0300.05714.51
5.3.230.0300.06314.55
5.3.220.0400.06314.66
5.3.210.0470.05014.51
5.3.200.0370.05014.56
5.3.190.0230.06014.47
5.3.180.0300.06014.62
5.3.170.0430.04314.63
5.3.160.0370.05314.61
5.3.150.0370.05714.51
5.3.140.0200.05714.60
5.3.130.0270.06314.47
5.3.120.0370.05314.54
5.3.110.0300.08314.47
5.3.100.0300.05713.96
5.3.90.0430.05314.17
5.3.80.0270.06013.99
5.3.70.0470.06313.94
5.3.60.0330.05713.99
5.3.50.0500.07013.91
5.3.40.0470.07013.85
5.3.30.0500.07313.98
5.3.20.0370.07013.76
5.3.10.0330.06713.58
5.3.00.0400.06713.79
5.2.170.0430.04311.35
5.2.160.0230.04311.20
5.2.150.0330.04311.20
5.2.140.0530.05311.17
5.2.130.0300.03311.14
5.2.120.0300.04011.08
5.2.110.0300.05311.01
5.2.100.0370.04011.03
5.2.90.0400.04311.24
5.2.80.0300.05711.23
5.2.70.0330.04311.23
5.2.60.0270.04310.97
5.2.50.0430.04011.04
5.2.40.0370.04711.03
5.2.30.0270.03710.96
5.2.20.0200.05011.02
5.2.10.0200.05010.89
5.2.00.0170.04310.75
5.1.60.0270.0309.96
5.1.50.0130.0409.96
5.1.40.0130.0409.99
5.1.30.0130.04310.35
5.1.20.0230.03710.40
5.1.10.0400.04010.00
5.1.00.0500.03710.08
5.0.50.0170.0338.55
5.0.40.0130.0378.46
5.0.30.0070.0538.40
5.0.20.0230.0338.32
5.0.10.0230.0278.20
5.0.00.0100.0578.35
4.4.90.0070.0306.67
4.4.80.0070.0236.67
4.4.70.0100.0206.67
4.4.60.0070.0276.67
4.4.50.0070.0306.67
4.4.40.0170.0376.67
4.4.30.0100.0236.67
4.4.20.0070.0236.67
4.4.10.0170.0306.67
4.4.00.0200.0336.67
4.3.110.0100.0336.67
4.3.100.0200.0136.67
4.3.90.0100.0336.67
4.3.80.0100.0376.67
4.3.70.0170.0236.67
4.3.60.0270.0206.67
4.3.50.0200.0236.67
4.3.40.0170.0406.67
4.3.30.0000.0276.67
4.3.20.0230.0236.67
4.3.10.0070.0306.67
4.3.00.0130.0177.41