3v4l.org

run code in 300+ PHP versions simultaneously
<?php preg_replace_callback('/a/', function($m) { for($i = 0; $i < 10000; $i++) preg_replace('/foo'.$i.'bar/', 'baz', '???foo'.$i.'bar???'); return 'b'; }, 'aa');

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).

VersionSystem time (s)User time (s)Memory (MiB)
8.1rc30.0030.14122.53
8.1rc20.0100.13122.52
8.1rc10.0070.13822.48
8.0.120.0070.13522.37
8.0.110.0100.13422.35
8.0.100.0000.13822.36
8.0.90.0030.14522.39
8.0.80.0130.36022.38
8.0.70.0030.13722.31
8.0.60.0100.13322.32
8.0.50.0070.13322.35
8.0.30.0110.19922.56
8.0.20.0220.28922.66
8.0.10.0030.13622.37
8.0.00.0210.34222.36
7.4.250.0030.13921.93
7.4.240.0120.13522.01
7.4.230.0030.14121.91
7.4.220.0090.38922.07
7.4.210.0160.35522.02
7.4.200.0100.13421.87
7.4.160.0070.28621.92
7.4.150.0070.30022.16
7.4.140.0270.38822.15
7.4.130.0260.37422.04
7.4.120.0210.38222.00
7.4.110.0230.25521.54
7.4.100.0160.32221.61
7.4.90.0130.26321.53
7.4.80.0070.27521.54
7.4.70.0280.28921.57
7.4.60.0160.27321.57
7.4.50.0070.10521.66
7.4.40.0190.27621.71
7.4.30.0170.39721.80
7.4.00.0070.22020.01
7.3.320.0100.12918.65
7.3.310.0070.13521.59
7.3.300.0030.13521.59
7.3.290.0210.33421.71
7.3.280.0150.30821.75
7.3.270.0320.25822.21
7.3.260.0230.26321.98
7.3.250.0190.27921.91
7.3.240.0290.34321.93
7.3.230.0130.28522.13
7.3.210.0130.28722.14
7.3.200.0290.34221.72
7.3.190.0090.27021.80
7.3.180.0160.37921.97
7.3.170.0190.32222.12
7.3.160.0100.41321.77
7.3.120.0200.30320.51
7.3.110.0130.23720.61
7.3.100.0070.17320.18
7.3.90.0070.29920.24
7.3.80.0030.20120.38
7.3.70.0130.19020.31
7.3.60.0070.27520.13
7.3.50.0130.18320.04
7.3.40.0130.18420.22
7.3.30.0070.22720.31
7.3.20.0030.17322.09
7.3.10.0030.16922.26
7.3.00.0100.19322.02
7.2.330.0130.28222.76
7.2.320.0130.24122.75
7.2.310.0160.29822.75
7.2.300.0230.24822.75
7.2.290.0260.36222.65
7.2.250.0070.18820.99
7.2.240.0170.17621.32
7.2.230.0070.16921.16
7.2.220.0070.28021.26
7.2.210.0100.15921.21
7.2.200.0030.20521.30
7.2.190.0030.24221.25
7.2.180.0100.21621.40
7.2.170.0170.22321.22
7.2.60.0130.12223.27
7.2.00.0230.13225.77
7.1.330.0100.23921.98
7.1.320.0030.17122.21
7.1.310.0100.17422.36
7.1.300.0100.18622.05
7.1.290.0070.25621.99
7.1.280.0100.19022.12
7.1.270.0070.16622.12
7.1.260.0100.16522.22
7.1.200.0160.17821.65
7.1.100.0240.14822.59
7.1.70.0000.16823.45
7.1.60.0100.20023.39
7.1.50.0170.20023.45
7.1.00.0070.25728.59
7.0.200.1010.14721.01
7.0.60.0030.21326.12
7.0.50.0070.23023.94
7.0.40.0200.22025.94
7.0.30.0400.20725.94
7.0.20.0230.22325.88
7.0.10.0200.22025.85
7.0.00.0070.18325.98
5.6.280.0170.11721.97
5.6.210.0130.12321.82
5.6.200.0030.13319.41
5.6.190.0030.09021.76
5.6.180.0470.07721.90
5.6.170.0430.11321.76
5.6.160.0170.11721.80
5.6.150.0030.08719.47
5.6.140.0070.11719.40
5.6.130.0170.08019.36
5.6.120.0100.12022.16
5.6.110.0170.09722.23
5.6.100.0130.09722.34
5.6.90.0170.07722.15
5.6.80.0000.05721.48
5.5.350.0200.12021.72
5.5.340.0030.07019.14
5.5.330.0130.06321.68
5.5.320.0300.12021.73
5.5.310.0330.10721.52
5.5.300.0070.12019.29
5.5.290.0070.11019.20
5.5.280.0100.11022.07
5.5.270.0070.09321.95
5.5.260.0070.11021.92
5.5.250.0030.11021.81
5.5.240.0030.05021.46
5.4.450.0300.08720.43
5.4.440.0700.07720.41
5.4.430.0030.08720.60
5.4.420.0100.08320.44
5.4.410.0170.07020.54
5.4.400.0130.07320.39
5.4.390.0130.07020.27
5.4.380.0070.08320.29
5.4.370.0170.06720.20
5.4.360.0200.06020.41
5.4.350.0070.08020.23
5.4.340.0070.07720.32
5.4.320.0030.08320.14
5.4.310.0130.07320.39
5.4.300.0070.08020.20
5.4.290.0230.06320.27
5.4.280.0100.07320.28
5.4.270.0130.07320.20
5.4.260.0170.06720.27
5.4.250.0270.09020.20
5.4.240.0030.08320.32
5.4.230.0030.08020.25
5.4.220.0070.08020.18
5.4.210.0200.08720.30
5.4.200.0100.07018.02
5.4.190.0100.07720.21
5.4.180.0170.07020.38
5.4.170.0070.08020.38
5.4.160.0070.08320.20
5.4.150.0230.06320.12
5.4.140.0170.06717.70
5.4.130.0100.07017.62
5.4.120.0030.07717.70
5.4.110.0000.09017.51
5.4.100.0130.07017.64
5.4.90.0070.07717.79
5.4.80.0170.06317.66
5.4.70.0070.07317.47
5.4.60.0100.07017.59
5.4.50.0100.07017.76
5.4.40.0130.07017.54
5.4.30.0130.07017.72
5.4.20.0130.07017.75
5.4.10.0100.07017.45
5.4.00.0030.08016.91
5.3.290.0100.07315.72
5.3.280.0100.08315.55
5.3.270.0070.08315.78
5.3.260.0070.08015.60
5.3.250.0100.08015.59
5.3.240.0100.07715.56
5.3.230.0070.09315.57
5.3.220.0100.07715.68
5.3.210.0100.07715.68
5.3.200.0130.07015.63
5.3.190.0100.09015.73
5.3.180.0200.06315.54
5.3.170.0200.08315.70
5.3.160.0200.09315.72
5.3.150.0030.11015.54
5.3.140.0070.08015.53
5.3.130.0070.08315.51
5.3.120.0200.07015.61
5.3.110.0270.06315.69
5.3.100.0170.06715.02
5.3.90.0130.07015.00
5.3.80.0130.07015.08
5.3.70.0030.08014.87
5.3.60.0070.07714.93
5.3.50.0130.07015.09
5.3.40.0070.09014.88
5.3.30.0070.07314.80
5.3.20.0100.07014.59
5.3.10.0130.06714.69
5.3.00.0230.10014.65
5.2.170.0100.03710.93
5.2.160.0170.03011.23
5.2.150.0130.03711.00
5.2.140.0100.04011.14
5.2.130.0070.04010.95
5.2.120.0070.04011.04
5.2.110.0070.04010.95
5.2.100.0070.03710.93
5.2.90.0030.04311.04
5.2.80.0130.03710.93
5.2.70.0100.03711.19
5.2.60.0030.04311.03
5.2.50.0070.04310.86
5.2.40.0030.04310.84
5.2.30.0130.03310.91
5.2.20.0130.03010.89
5.2.10.0100.03310.84
5.2.00.0070.04010.78
5.1.60.0130.0279.82
5.1.50.0030.0379.88
5.1.40.0070.0339.98
5.1.30.0070.03310.23
5.1.20.0130.03010.39
5.1.10.0070.0339.95
5.1.00.0030.0379.98
5.0.50.0070.0278.38
5.0.40.0000.0308.44
5.0.30.0100.0378.25
5.0.20.0000.0308.13
5.0.10.0070.0278.26
5.0.00.0030.0438.03
4.4.90.0030.0205.91
4.4.80.0070.0175.79
4.4.70.0070.0205.80
4.4.60.0030.0205.85
4.4.50.0070.0175.77
4.4.40.0000.0375.77
4.4.30.0070.0175.81
4.4.20.0070.0205.95
4.4.10.0070.0175.81
4.4.00.0000.0375.89
4.3.110.0000.0235.72
4.3.100.0100.0135.77
4.3.90.0030.0235.73
4.3.80.0030.0335.76
4.3.70.0070.0175.77
4.3.60.0030.0205.64
4.3.50.0070.0205.66
4.3.40.0070.0305.62
4.3.30.0000.0234.56
4.3.20.0000.0234.55
4.3.10.0030.0204.35
4.3.00.0030.0237.05

preferences:
59.3 ms | 528 KiB | 13 Q