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', '$2_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.0040.01118.56
8.3.50.0110.00521.33
8.3.40.0110.00719.01
8.3.30.0060.00920.27
8.3.20.0070.00020.33
8.3.10.0080.00022.00
8.3.00.0030.00622.37
8.2.180.0070.00716.75
8.2.170.0090.00622.96
8.2.160.0090.00622.20
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0090.00619.57
8.2.110.0060.00322.44
8.2.100.0060.00617.84
8.2.90.0040.00418.84
8.2.80.0060.00319.41
8.2.70.0040.00417.75
8.2.60.0080.00017.79
8.2.50.0040.00418.07
8.2.40.0080.00018.21
8.2.30.0040.00419.46
8.2.20.0000.00717.80
8.2.10.0040.00417.83
8.2.00.0000.01017.85
8.1.280.0110.00725.92
8.1.270.0030.00622.25
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0040.00423.94
8.1.230.0070.00419.08
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0030.00617.47
8.1.190.0080.00017.43
8.1.180.0030.00618.10
8.1.170.0040.00418.63
8.1.160.0000.00718.90
8.1.150.0000.00718.77
8.1.140.0000.00817.63
8.1.130.0070.00017.71
8.1.120.0030.00317.61
8.1.110.0040.00417.47
8.1.100.0040.00417.52
8.1.90.0040.00417.57
8.1.80.0040.00417.60
8.1.70.0000.00717.57
8.1.60.0080.00017.75
8.1.50.0000.01117.63
8.1.40.0040.00417.56
8.1.30.0040.00417.70
8.1.20.0000.00817.82
8.1.10.0030.00617.56
8.1.00.0060.00317.50
8.0.300.0040.00418.77
8.0.290.0030.00517.18
8.0.280.0030.00318.52
8.0.270.0070.00017.33
8.0.260.0030.00316.98
8.0.250.0070.00316.99
8.0.240.0040.00416.99
8.0.230.0040.00416.96
8.0.220.0000.00716.98
8.0.210.0000.00716.93
8.0.200.0000.00716.96
8.0.190.0070.00017.13
8.0.180.0030.00317.04
8.0.170.0030.00617.00
8.0.160.0050.00316.90
8.0.150.0040.00416.98
8.0.140.0030.00517.05
8.0.130.0030.00313.50
8.0.120.0030.00516.89
8.0.110.0030.00617.08
8.0.100.0030.00416.86
8.0.90.0070.00016.90
8.0.80.0040.01317.07
8.0.70.0040.00416.82
8.0.60.0030.00517.06
8.0.50.0050.00216.94
8.0.30.0090.01117.26
8.0.20.0150.00517.46
8.0.10.0000.00817.09
8.0.00.0070.01116.90
7.4.330.0000.00515.05
7.4.320.0030.00316.66
7.4.300.0000.00616.73
7.4.290.0000.00716.79
7.4.280.0050.00316.68
7.4.270.0040.00416.79
7.4.260.0060.00013.40
7.4.250.0040.00416.55
7.4.240.0030.00316.70
7.4.230.0070.00016.85
7.4.220.0030.02316.77
7.4.210.0080.00616.76
7.4.200.0000.00816.55
7.4.190.0000.00816.46
7.4.160.0030.01316.65
7.4.150.0120.01217.40
7.4.140.0130.00817.86
7.4.130.0090.00816.70
7.4.120.0110.00716.65
7.4.110.0110.01416.72
7.4.100.0070.01116.47
7.4.90.0030.01416.68
7.4.80.0140.00319.39
7.4.70.0050.01116.54
7.4.60.0100.00716.72
7.4.50.0030.00616.36
7.4.40.0060.00922.77
7.4.30.0070.01116.59
7.4.00.0030.01315.30
7.3.330.0050.00013.16
7.3.320.0030.00313.13
7.3.310.0000.00616.38
7.3.300.0000.00716.46
7.3.290.0120.00316.32
7.3.280.0050.01116.42
7.3.270.0000.01717.40
7.3.260.0100.00716.68
7.3.250.0060.01116.51
7.3.240.0030.01316.49
7.3.230.0140.00316.73
7.3.210.0100.00716.46
7.3.200.0100.01019.39
7.3.190.0070.01316.70
7.3.180.0070.01016.45
7.3.170.0120.00416.67
7.3.160.0040.01316.42
7.3.120.0130.00314.98
7.2.330.0130.00616.78
7.2.320.0100.00716.74
7.2.310.0090.00916.75
7.2.300.0140.00316.81
7.2.290.0080.00816.68
7.2.60.0060.00616.75
7.2.00.0070.00419.39
7.1.200.0000.00715.93
7.1.100.0110.00817.83
7.1.70.0000.01017.33
7.1.60.0110.01419.21
7.1.50.0070.01617.19
7.1.00.0030.03322.55
7.0.200.0510.01014.89
7.0.140.0000.07722.20
7.0.70.0130.05021.80
7.0.60.0030.06321.77
7.0.50.0200.03722.19
7.0.40.0030.04720.17
7.0.30.0070.04320.11
7.0.20.0000.04320.14
7.0.10.0100.03320.11
7.0.00.0000.08720.14
5.6.280.0070.06721.09
5.6.220.0100.07320.67
5.6.210.0030.08720.61
5.6.200.0030.09021.13
5.6.190.0070.04021.10
5.6.180.0030.08021.11
5.6.170.0030.04321.11
5.6.160.0030.07021.10
5.6.150.0070.04021.10
5.6.140.0000.04721.03
5.6.130.0030.04021.10
5.6.120.0030.04321.05
5.6.110.0000.04321.05
5.6.100.0030.04320.99
5.6.90.0000.05721.07
5.6.80.0000.04020.43
5.6.70.0000.04320.43
5.6.60.0030.04020.37
5.6.50.0070.03720.37
5.6.40.0000.04320.41
5.6.30.0070.03720.45
5.6.20.0000.04020.27
5.6.10.0000.04320.45
5.6.00.0000.04720.35
5.5.360.0000.09020.33
5.5.350.0030.04720.40
5.5.340.0070.05320.79
5.5.330.0030.04020.79
5.5.320.0030.07320.83
5.5.310.0000.04320.90
5.5.300.0000.08320.76
5.5.290.0070.05720.91
5.5.280.0070.03720.79
5.5.270.0030.04020.76
5.5.260.0000.06320.76
5.5.250.0070.03720.57
5.5.240.0100.03720.26
5.5.230.0030.03720.10
5.5.220.0070.03320.27
5.5.210.0000.04020.25
5.5.200.0030.04019.98
5.5.190.0000.04020.27
5.5.180.0000.04020.18
5.5.160.0070.03320.25
5.5.150.0000.04020.23
5.5.140.0000.06020.26
5.5.130.0070.03320.21
5.5.120.0030.07720.14
5.5.110.0070.07720.25
5.5.100.0030.08320.10
5.5.90.0070.05320.16
5.5.80.0130.04020.08
5.5.70.0030.05020.09
5.5.60.0000.05320.11
5.5.50.0000.07020.13
5.5.40.0030.06319.92
5.5.30.0070.04320.04
5.5.20.0000.04720.03
5.5.10.0030.06720.01
5.5.00.0070.08020.09
5.4.450.0030.04719.23
5.4.440.0000.04019.29
5.4.430.0000.04019.39
5.4.420.0030.06319.35
5.4.410.0000.04019.25
5.4.400.0000.04018.90
5.4.390.0000.04319.02
5.4.380.0000.05019.07
5.4.370.0070.03318.96
5.4.360.0000.05719.05
5.4.350.0030.06718.96
5.4.340.0000.04318.96
5.4.320.0030.03719.06
5.4.310.0030.03318.78
5.4.300.0030.03718.94
5.4.290.0000.03718.78
5.4.280.0030.07719.06
5.4.270.0030.07318.98
5.4.260.0000.08019.12
5.4.250.0130.06319.01
5.4.240.0100.06718.89
5.4.230.0030.06018.89
5.4.220.0030.08319.02
5.4.210.0070.06018.89
5.4.200.0070.03718.97
5.4.190.0030.05318.80
5.4.180.0070.07019.03
5.4.170.0030.07718.77
5.4.160.0000.08319.07
5.4.150.0100.05319.09
5.4.140.0000.06016.28
5.4.130.0070.05316.12
5.4.120.0000.05716.11
5.4.110.0030.07716.23
5.4.100.0000.06716.30
5.4.90.0030.07316.42
5.4.80.0030.07716.25
5.4.70.0070.07016.43
5.4.60.0030.04016.30
5.4.50.0130.07016.23
5.4.40.0030.05716.43
5.4.30.0000.07316.23
5.4.20.0000.07716.39
5.4.10.0030.05716.20
5.4.00.0030.07715.85
5.3.290.0030.03714.52
5.3.280.0000.06014.45
5.3.270.0030.07714.59
5.3.260.0000.08314.59
5.3.250.0030.07714.56
5.3.240.0070.07314.54
5.3.230.0070.07714.54
5.3.220.0000.08014.55
5.3.210.0030.05314.54
5.3.200.0000.05314.50
5.3.190.0030.07714.52
5.3.180.0030.06014.54
5.3.170.0030.07714.41
5.3.160.0070.07714.41
5.3.150.0100.07014.55
5.3.140.0030.07014.39
5.3.130.0100.07714.53
5.3.120.0030.07314.45
5.3.110.0000.07714.53
5.3.100.0070.06714.00
5.3.90.0070.07313.98
5.3.80.0070.07013.87
5.3.70.0000.05713.88
5.3.60.0030.07713.94
5.3.50.0030.06713.80
5.3.40.0030.07713.88
5.3.30.0070.06713.89
5.3.20.0070.06313.63
5.3.10.0030.06013.59
5.3.00.0070.07013.64
5.2.170.0070.05712.25
5.2.160.0030.03712.25
5.2.150.0070.05312.25
5.2.140.0000.06712.25
5.2.130.0030.06012.25
5.2.120.0070.05712.25
5.2.110.0000.05712.25
5.2.100.0070.06012.25
5.2.90.0030.05312.25
5.2.80.0000.06312.25
5.2.70.0000.05712.25
5.2.60.0030.06312.25
5.2.50.0030.05312.25
5.2.40.0030.06012.25
5.2.30.0030.04312.25
5.2.20.0070.06012.25
5.2.10.0030.04012.25
5.2.00.0070.05712.25
5.1.60.0030.05712.25
5.1.50.0030.04012.25
5.1.40.0030.05012.25
5.1.30.0030.05312.25
5.1.20.0070.05312.25
5.1.10.0030.04712.25
5.1.00.0030.05312.25
5.0.50.0030.04012.25
5.0.40.0030.04712.25
5.0.30.0030.06312.25
5.0.20.0000.04712.25
5.0.10.0000.04012.25
5.0.00.0070.05712.25
4.4.90.0030.03012.25
4.4.80.0030.02712.25
4.4.70.0000.02712.25
4.4.60.0030.03312.25
4.4.50.0070.02012.25
4.4.40.0100.04012.25
4.4.30.0070.01012.25
4.4.20.0000.03312.25
4.4.10.0030.03312.25
4.4.00.0030.05312.25
4.3.110.0030.03312.25
4.3.100.0030.02312.25
4.3.90.0030.03312.25
4.3.80.0030.05012.25
4.3.70.0000.02012.25
4.3.60.0030.02012.25
4.3.50.0030.02312.25
4.3.40.0000.05012.25
4.3.30.0000.03712.25
4.3.20.0070.03012.25
4.3.10.0000.04012.25
4.3.00.0000.03712.25

preferences:
36.12 ms | 401 KiB | 5 Q