3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $regex = '/(((?!a).)*)*a\\{/'; $test_string = 'AAAAAAAAAAAAAA{AA'; echo mb_ereg_replace($regex,'WORKED',$test_string); echo "\n"; var_dump(preg_match($regex,$test_string));

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.0030.01498.97
7.3.0rc30.0140.01016.65
7.3.0beta10.0040.00412.91
7.3.0alpha10.0130.00312.63
7.2.60.0040.01416.93
7.2.00.0060.01319.48
7.1.200.0110.00415.91
7.1.100.0050.00818.43
7.1.70.0060.00917.28
7.1.60.0060.02519.33
7.1.50.0100.01717.17
7.1.00.0070.08022.50
7.0.200.0110.00715.09
7.0.140.0000.08322.12
7.0.110.0600.08019.82
7.0.100.0600.08019.88
7.0.90.0500.07719.82
7.0.80.0630.06719.81
7.0.70.0530.07719.93
7.0.60.0570.07319.95
7.0.50.0370.09020.24
7.0.40.0070.08320.16
7.0.30.0070.08720.21
7.0.20.0070.09320.03
7.0.10.0130.08020.03
7.0.00.0130.08320.27
5.6.280.0070.09721.11
5.6.260.0100.06720.63
5.6.250.0170.09320.61
5.6.240.0070.09720.58
5.6.230.0300.06320.59
5.6.220.0070.07020.61
5.6.210.0200.08320.33
5.6.200.0070.10321.14
5.6.190.0070.09721.21
5.6.180.0070.09321.04
5.6.170.0030.10721.28
5.6.160.0070.10021.07
5.6.150.0300.08721.14
5.6.140.0030.06321.01
5.6.130.0070.10321.27
5.6.120.0070.10321.18
5.6.110.0100.09321.00
5.6.100.0100.09721.12
5.6.90.0070.07021.02
5.6.80.0070.10020.36
5.6.70.0000.06320.45
5.6.60.0100.09720.39
5.6.50.0130.10020.36
5.6.40.0000.10720.54
5.6.30.0070.06320.27
5.6.20.0100.06320.37
5.6.10.0070.10020.56
5.6.00.0070.07320.36
5.5.380.0100.10320.46
5.5.370.0070.10320.30
5.5.360.0170.05720.46
5.5.350.0200.09020.32
5.5.340.0070.10321.03
5.5.330.0130.09020.78
5.5.320.0070.10320.80
5.5.310.0070.09020.73
5.5.300.0130.09720.96
5.5.290.0070.11020.88
5.5.280.0070.08020.98
5.5.270.0030.10320.97
5.5.260.0130.07320.72
5.5.250.0070.09320.70
5.5.240.0100.10020.41
5.5.230.0130.09720.36
5.5.220.0030.05320.18
5.5.210.0170.08720.11
5.5.200.0030.10320.14
5.5.190.0130.08320.18
5.5.180.0070.09320.25
5.5.160.0130.08320.12
5.5.150.0130.09320.12
5.5.140.0070.10720.21
5.5.130.0070.09020.31
5.5.120.0030.06720.29
5.5.110.0100.06320.36
5.5.100.0000.06020.25
5.5.90.0000.10020.21
5.5.80.0030.08320.14
5.5.70.0130.09320.13
5.5.60.0070.10020.25
5.5.50.0130.09019.95
5.5.40.0100.09020.22
5.5.30.0100.09320.07
5.5.20.0100.09020.22
5.5.10.0130.09019.95
5.5.00.0030.06720.20
5.4.450.0170.08019.47
5.4.440.0100.09019.33
5.4.430.0200.09019.35
5.4.420.0130.10019.46
5.4.410.0130.07719.20
5.4.400.0100.09319.13
5.4.390.0030.09719.05
5.4.380.0070.08019.03
5.4.370.0100.09319.10
5.4.360.0000.10019.10
5.4.350.0070.09319.05
5.4.340.0070.07019.14
5.4.320.0070.08718.93
5.4.310.0130.08719.05
5.4.300.0130.09019.20
5.4.290.0070.07019.09
5.4.280.0200.07319.00
5.4.270.0100.08719.29
5.4.260.0070.05719.00
5.4.250.0070.04719.13
5.4.240.0070.06019.14
5.4.230.0030.09718.95
5.4.220.0030.06018.96
5.4.210.0100.08719.27
5.4.200.0170.04719.06
5.4.190.0100.08719.20
5.4.180.0070.10018.94
5.4.170.0070.09018.96
5.4.160.0100.08719.10
5.4.150.0030.06018.93
5.4.140.0130.08716.50
5.4.130.0130.08316.55
5.4.120.0200.04716.48
5.4.110.0100.09016.48
5.4.100.0070.08716.20
5.4.90.0030.04716.60
5.4.80.0000.09316.47
5.4.70.0070.08316.43
5.4.60.0070.04716.48
5.4.50.0070.04716.50
5.4.40.0070.04716.18
5.4.30.0070.04716.14
5.4.20.0000.05016.12
5.4.10.0100.06016.27
5.4.00.0000.05015.64
5.3.290.0070.06014.57
5.3.280.0070.05714.54
5.3.270.0030.10314.49
5.3.260.0000.10314.45
5.3.250.0100.09314.55
5.3.240.0170.08314.64
5.3.230.0100.09014.51
5.3.220.0070.08314.50
5.3.210.0130.08714.55
5.3.200.0030.08714.50
5.3.190.0030.09314.48
5.3.180.0030.09314.48
5.3.170.0130.08314.68
5.3.160.0100.05314.53
5.3.150.0030.05314.50
5.3.140.0030.05014.53
5.3.130.0100.07714.65
5.3.120.0030.05014.49
5.3.110.0070.04714.43
5.3.100.0000.05314.02
5.3.90.0070.04313.99
5.3.80.0100.04313.88
5.3.70.0070.04313.97
5.3.60.0000.05313.95
5.3.50.0000.04013.99
5.3.40.0130.06313.99
5.3.30.0100.03313.71
5.3.20.0030.06713.64
5.3.10.0030.04713.54
5.3.00.0030.03713.58
5.2.170.0070.03011.87
5.2.160.0070.04011.87
5.2.150.0030.05011.87
5.2.140.0030.04711.87
5.2.130.0030.03311.87
5.2.120.0030.02711.87
5.2.110.0000.03011.87
5.2.100.0070.02711.87
5.2.90.0000.06011.87
5.2.80.0030.03011.87
5.2.70.0030.03011.87
5.2.60.0070.04711.87
5.2.50.0030.04711.87
5.2.40.0000.03711.87
5.2.30.0100.02018.59
5.2.20.0130.04318.75
5.2.10.0070.02711.87
5.2.00.0000.03011.87
5.1.60.0070.05011.87
5.1.50.0030.05311.87
5.1.40.0000.05711.87
5.1.30.0030.05711.87
5.1.20.0000.09711.87
5.1.10.0000.05711.87
5.1.00.0000.05311.87
5.0.50.0030.08311.87
5.0.40.0030.04011.87
5.0.30.0000.06711.87
5.0.20.0000.05011.87
5.0.10.0000.05011.87
5.0.00.0000.05711.87
4.4.90.0000.07311.87
4.4.80.0030.01713.64
4.4.70.0000.01713.69
4.4.60.0030.04313.74
4.4.50.0000.06711.87
4.4.40.0000.05711.87
4.4.30.0030.05311.87
4.4.20.0030.04311.87
4.4.10.0000.04711.87
4.4.00.0070.05311.87
4.3.110.0000.06011.87
4.3.100.0030.04011.87
4.3.90.0000.04011.87
4.3.80.0070.04311.87
4.3.70.0000.04011.87
4.3.60.0000.04011.87
4.3.50.0000.04011.87
4.3.40.0000.05011.87
4.3.30.0000.01311.87
4.3.20.0000.01711.87
4.3.10.0000.01311.87
4.3.00.0000.02711.87