3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = 'My Name ## is "#P_NAM3#" and \r\n I am \'#P_AG2#\' years old `#abc#`'; $r = '#([^#]*)#'; //$r = '#(?P<name>.*?)#'; //$r = '#(\w*)#'; //preg_match_all('/'.$r.'/m', $text, $m); //var_dump($m); echo preg_replace('/'.$r.'/m', '$1_es', $text);

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.3.60.0080.00818.41
8.3.50.0150.00521.02
8.3.40.0140.00418.98
8.3.30.0100.01022.11
8.3.20.0000.00722.08
8.3.10.0040.00422.08
8.3.00.0000.00822.21
8.2.180.0070.01116.46
8.2.170.0120.00322.96
8.2.160.0000.01322.43
8.2.150.0030.00524.18
8.2.140.0050.00224.66
8.2.130.0070.00026.16
8.2.120.0000.00820.85
8.2.110.0060.00319.01
8.2.100.0090.00317.97
8.2.90.0080.00019.09
8.2.80.0060.00317.97
8.2.70.0000.00817.75
8.2.60.0000.00917.93
8.2.50.0030.00618.07
8.2.40.0080.00018.15
8.2.30.0070.00019.45
8.2.20.0040.00417.86
8.2.10.0080.00017.81
8.2.00.0060.00317.76
8.1.280.0150.00325.92
8.1.270.0030.00623.99
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0040.00421.24
8.1.230.0040.00817.64
8.1.220.0030.00517.74
8.1.210.0000.00818.77
8.1.200.0060.00317.47
8.1.190.0060.00617.35
8.1.180.0050.00518.10
8.1.170.0040.00418.71
8.1.160.0000.00718.95
8.1.150.0040.00418.78
8.1.140.0040.00417.46
8.1.130.0000.00717.84
8.1.120.0070.00017.68
8.1.110.0000.00717.55
8.1.100.0070.00017.63
8.1.90.0030.00317.62
8.1.80.0040.00417.50
8.1.70.0030.00317.59
8.1.60.0040.00417.61
8.1.50.0070.00317.70
8.1.40.0000.00817.57
8.1.30.0030.00517.73
8.1.20.0080.00017.79
8.1.10.0000.00717.66
8.1.00.0090.00317.57
8.0.300.0000.00718.77
8.0.290.0070.00016.75
8.0.280.0080.00018.50
8.0.270.0030.00317.23
8.0.260.0050.00317.01
8.0.250.0030.00617.00
8.0.240.0030.00616.99
8.0.230.0030.00317.16
8.0.220.0030.00317.04
8.0.210.0030.00516.93
8.0.200.0030.00317.02
8.0.190.0000.00817.08
8.0.180.0040.00417.05
8.0.170.0040.00417.03
8.0.160.0070.00016.94
8.0.150.0030.00316.96
8.0.140.0000.00917.05
8.0.130.0000.00513.47
8.0.120.0000.00716.96
8.0.110.0020.00517.03
8.0.100.0000.00717.00
8.0.90.0070.00017.05
8.0.80.0100.00616.99
8.0.70.0050.00216.93
8.0.60.0000.00716.89
8.0.50.0040.00416.94
8.0.30.0110.00917.24
8.0.20.0130.00517.40
8.0.10.0000.00717.00
8.0.00.0050.01216.77
7.4.330.0030.00314.88
7.4.320.0000.00616.74
7.4.300.0050.00216.79
7.4.290.0000.00716.73
7.4.280.0080.00016.77
7.4.270.0030.00316.59
7.4.260.0000.00613.45
7.4.250.0040.00416.51
7.4.240.0030.00416.65
7.4.230.0030.00316.54
7.4.220.0060.01216.73
7.4.210.0090.00616.67
7.4.200.0040.00416.82
7.4.190.0080.00016.83
7.4.160.0130.00316.75
7.4.150.0100.00617.40
7.4.140.0100.00717.86
7.4.130.0100.00616.70
7.4.120.0070.01016.69
7.4.110.0000.01816.39
7.4.100.0170.00716.55
7.4.90.0030.01316.50
7.4.80.0150.00419.39
7.4.70.0100.00716.73
7.4.60.0070.01016.52
7.4.50.0050.00316.57
7.4.40.0080.00822.77
7.4.30.0150.00616.59
7.4.00.0000.01215.08
7.3.330.0060.00013.25
7.3.320.0040.00413.14
7.3.310.0040.00416.53
7.3.300.0040.00416.32
7.3.290.0060.01316.41
7.3.280.0030.01216.44
7.3.270.0060.01217.40
7.3.260.0090.00916.73
7.3.250.0040.01516.71
7.3.240.0080.00816.39
7.3.230.0190.00316.54
7.3.210.0120.00316.53
7.3.200.0190.00319.39
7.3.190.0070.01116.38
7.3.180.0100.00716.46
7.3.170.0060.01016.47
7.3.160.0060.01216.46
7.3.120.0030.01015.15
7.2.330.0100.01316.90
7.2.320.0110.01116.76
7.2.310.0070.01016.75
7.2.300.0110.00616.87
7.2.290.0130.00316.73
7.1.100.0300.01018.12
7.1.70.0060.00317.07
7.1.60.0030.02019.21
7.1.50.0040.00816.94
7.1.00.0000.06022.30
7.0.200.0000.00716.67
7.0.140.0100.07022.00
7.0.60.0100.07020.07
7.0.50.0070.05717.92
7.0.40.0030.05020.21
7.0.30.0300.07720.11
7.0.20.0230.06720.19
7.0.10.0000.05720.35
7.0.00.0200.06320.10
5.6.280.0100.06320.82
5.6.210.0030.06020.66
5.6.200.0070.08318.13
5.6.190.0070.04020.41
5.6.180.0030.05320.45
5.6.170.0270.03320.51
5.6.160.0070.08320.47
5.6.150.0130.07718.11
5.6.140.0070.07718.18
5.6.130.0170.07318.21
5.6.120.0170.07321.04
5.6.110.0070.08320.98
5.6.100.0070.06321.12
5.6.90.0000.08021.11
5.6.80.0100.06020.39
5.6.70.3700.04720.35
5.5.350.0130.05720.39
5.5.340.0100.07717.99
5.5.330.0000.08720.25
5.5.320.0400.07020.13
5.5.310.0270.08020.21
5.5.300.0100.07017.95
5.5.290.0100.07718.00
5.5.280.0200.06320.89
5.5.270.0070.04020.67
5.5.260.0170.07320.79
5.5.250.0000.05720.57
5.5.240.0130.04320.25
5.4.450.0300.04719.14
5.4.440.0170.04319.25
5.4.430.0100.03719.48
5.4.420.0200.06019.41
5.4.410.0330.06719.14
5.4.400.0230.06018.88
5.4.390.0300.07019.13
5.4.380.0270.05719.09
5.4.370.2300.03719.25
5.4.360.0700.04018.93
5.4.350.0070.03719.07
5.4.340.2830.05018.93
5.4.320.0170.03718.91
5.4.310.0270.04019.06
5.4.300.0100.04718.80
5.4.290.0330.04019.16
5.4.280.0300.06319.08
5.4.270.0300.04019.08
5.4.260.0100.06719.13
5.4.250.0270.03718.78
5.4.240.0230.05019.09
5.4.230.0200.03719.13
5.4.220.0170.04719.24
5.4.210.0300.06319.12
5.4.200.0170.08019.23
5.4.190.0170.03718.77
5.4.180.0070.04018.87
5.4.170.3230.05019.12
5.4.160.2600.03018.90
5.4.150.2800.03718.89
5.4.140.2930.03316.44
5.4.130.2870.03716.45
5.4.120.0100.07016.30
5.4.110.2230.03716.43
5.4.100.1900.04316.44
5.4.90.0270.04016.20
5.4.80.0030.03716.37
5.4.70.0170.07016.05
5.4.60.0200.06716.37
5.4.50.0230.07716.38
5.4.40.0170.04716.40
5.4.30.0130.03716.40
5.4.20.0130.03716.40
5.4.10.0270.03316.31
5.4.00.0130.04015.65
5.3.290.0200.07314.49
5.3.280.0270.07314.43
5.3.270.0270.04314.50
5.3.260.2830.03314.54
5.3.250.2600.04714.49
5.3.240.2770.03314.45
5.3.230.0930.03314.54
5.3.220.0070.07314.50
5.3.210.0070.07714.42
5.3.200.2300.04014.50
5.3.190.0100.07714.41
5.3.180.0200.07314.60
5.3.170.0130.04314.43
5.3.160.0300.05714.39
5.3.150.0200.06714.41
5.3.140.0270.07014.46
5.3.130.0130.04014.54
5.3.120.0230.03714.40
5.3.110.0270.03714.49
5.3.100.0100.03713.87
5.3.90.0170.02713.88
5.3.80.0170.02713.96
5.3.70.0100.04013.81
5.3.60.0130.03713.83
5.3.50.0200.04013.72
5.3.40.0170.03313.80
5.3.30.0170.04313.75
5.3.20.0170.03313.55
5.3.10.0230.02713.75
5.3.00.0130.03713.58
5.2.170.0130.02710.98
5.2.160.0170.02311.16
5.2.150.0100.03011.00
5.2.140.0170.02311.04
5.2.130.0130.02711.25
5.2.120.0130.02710.96
5.2.110.0200.02010.95
5.2.100.0100.03010.95
5.2.90.0130.02711.11
5.2.80.0200.02310.94
5.2.70.0130.03011.02
5.2.60.0170.02710.93
5.2.50.0030.02711.04
5.2.40.0030.03311.00
5.2.30.0200.03310.99
5.2.20.0230.02710.89
5.2.10.0030.03710.80
5.2.00.0170.02310.77
5.1.60.0130.03010.30
5.1.50.0130.02310.30
5.1.40.0130.02010.30
5.1.30.0130.02710.30
5.1.20.0100.03010.30
5.1.10.0100.04010.30
5.1.00.0130.02710.30
5.0.50.0070.02010.30
5.0.40.0030.02710.30
5.0.30.0030.04010.30
5.0.20.0000.02310.30
5.0.10.0000.02010.30
5.0.00.0030.02710.30
4.4.90.0030.01710.30
4.4.80.0070.01310.30
4.4.70.0030.01310.30
4.4.60.0000.02010.30
4.4.50.0000.02310.30
4.4.40.0000.02710.30
4.4.30.0030.01710.30
4.4.20.0070.01310.30
4.4.10.0100.01010.30
4.4.00.0000.05310.30
4.3.110.0070.02710.30
4.3.100.0070.01710.30
4.3.90.0030.01710.30
4.3.80.0000.05310.30
4.3.70.0000.02310.30
4.3.60.0000.02010.30
4.3.50.0000.02010.30
4.3.40.0000.02710.30
4.3.30.0270.01010.30
4.3.20.0300.02010.30
4.3.10.0130.01710.30
4.3.00.0230.01310.30

preferences:
48.24 ms | 401 KiB | 5 Q