3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pattern = "/(い)(.)(.)(.)(.)(.)(.)(.)(.)(ぬ)/u"; $replacement = "\\1<span class='red'>\\2\\3\\4\\5\\6\\7\\8\\9</span>\\10"; $string = "いろはにほへとちりぬ"; echo preg_replace($pattern, $replacement, $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).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.60.0150.00016.63
8.3.50.0080.00818.37
8.3.40.0090.00618.93
8.3.30.0060.01319.01
8.3.20.0040.00420.34
8.3.10.0000.00822.02
8.3.00.0050.00323.66
8.2.180.0130.00725.92
8.2.170.0040.01122.96
8.2.160.0030.01020.27
8.2.150.0000.00824.18
8.2.140.0140.00424.66
8.2.130.0000.00819.30
8.2.120.0050.00326.35
8.2.110.0030.00621.23
8.2.100.0040.00818.03
8.2.90.0040.00418.16
8.2.80.0060.00319.89
8.2.70.0040.00417.75
8.2.60.0040.00417.75
8.2.50.0060.00317.75
8.2.40.0030.00619.50
8.2.30.0030.00520.97
8.2.20.0040.00418.13
8.2.10.0080.00018.13
8.2.00.0030.00617.90
8.1.280.0070.01125.92
8.1.270.0090.00023.96
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0040.00420.70
8.1.230.0040.00822.20
8.1.220.0090.00017.74
8.1.210.0040.00418.85
8.1.200.0000.00817.36
8.1.190.0060.00317.23
8.1.180.0040.00418.10
8.1.170.0000.00817.62
8.1.160.0070.00318.86
8.1.150.0030.00720.01
8.1.140.0040.00419.55
8.1.130.0030.00319.07
8.1.120.0030.00317.52
8.1.110.0040.00417.55
8.1.100.0000.00717.54
8.1.90.0040.00417.50
8.1.80.0040.00417.59
8.1.70.0050.00317.52
8.1.60.0050.00317.67
8.1.50.0080.00017.61
8.1.40.0030.00717.61
8.1.30.0040.00417.76
8.1.20.0030.00517.62
8.1.10.0030.00617.71
8.1.00.0030.00617.48
8.0.300.0000.00820.04
8.0.290.0040.00416.88
8.0.280.0040.00418.47
8.0.270.0000.00717.27
8.0.260.0030.00620.52
8.0.250.0000.00817.19
8.0.240.0000.00817.09
8.0.230.0000.00717.09
8.0.220.0000.00717.02
8.0.210.0040.00416.95
8.0.200.0030.00317.13
8.0.190.0080.00017.10
8.0.180.0040.00417.06
8.0.170.0000.00817.05
8.0.160.0050.00317.06
8.0.150.0000.00716.95
8.0.140.0040.00417.02
8.0.130.0000.00513.52
8.0.120.0030.00317.09
8.0.110.0020.00517.11
8.0.100.0050.00216.94
8.0.90.0080.00016.84
8.0.80.0030.01417.10
8.0.70.0040.00417.05
8.0.60.0040.00417.11
8.0.50.0040.00416.93
8.0.30.0080.01017.02
8.0.20.0090.01017.42
8.0.10.0000.00717.06
8.0.00.0120.00616.83
7.4.330.0020.00215.55
7.4.320.0030.00316.80
7.4.300.0030.00316.76
7.4.290.0000.00716.74
7.4.280.0070.00016.72
7.4.270.0000.00716.65
7.4.260.0030.00516.71
7.4.250.0000.00716.75
7.4.240.0050.00316.69
7.4.230.0000.00816.56
7.4.220.0100.00716.57
7.4.210.0030.01216.85
7.4.200.0030.00316.62
7.4.160.0080.01116.78
7.4.150.0070.01117.40
7.4.140.0090.01117.86
7.4.130.0040.01416.70
7.4.120.0090.01116.76
7.4.110.0080.00816.73
7.4.100.0070.01316.61
7.4.90.0070.01116.51
7.4.80.0090.00919.39
7.4.70.0150.00416.60
7.4.60.0140.00316.80
7.4.50.0090.00616.62
7.4.40.0100.00716.75
7.4.30.0100.00716.58
7.4.00.0080.00615.12
7.3.330.0050.00013.11
7.3.320.0030.00313.18
7.3.310.0040.00416.32
7.3.300.0000.00716.33
7.3.290.0070.00916.41
7.3.280.0070.00916.36
7.3.270.0130.00517.40
7.3.260.0140.00516.73
7.3.250.0100.00816.39
7.3.240.0110.00916.46
7.3.230.0110.00616.46
7.3.210.0120.00316.59
7.3.200.0090.00916.31
7.3.190.0090.00616.71
7.3.180.0090.01416.57
7.3.170.0120.00316.52
7.3.160.0070.01016.60
7.3.120.0130.00614.85
7.3.110.0070.01014.92
7.3.100.0100.00715.10
7.3.90.0030.01315.07
7.3.80.0070.00714.73
7.3.70.0060.00614.61
7.3.60.0030.01014.78
7.3.50.0090.00314.70
7.3.40.0040.01114.71
7.3.30.0120.00014.79
7.3.20.0030.01016.64
7.3.10.0030.00916.71
7.3.00.0030.01216.89
7.2.330.0170.00016.57
7.2.320.0060.00916.57
7.2.310.0070.01116.61
7.2.300.0080.00816.60
7.2.290.0040.01316.61
7.2.250.0100.01015.01
7.2.240.0130.00715.15
7.2.230.0090.00615.18
7.2.220.0030.01314.73
7.2.210.0030.01314.95
7.2.200.0090.00915.26
7.2.190.0070.00715.01
7.2.180.0030.01015.03
7.2.170.0000.01714.87
7.2.60.0040.01117.05
7.1.330.0080.00615.90
7.1.320.0120.00316.09
7.1.310.0060.00616.07
7.1.300.0030.01015.70
7.1.290.0000.01616.01
7.1.280.0000.01515.73
7.1.270.0070.00315.71
7.1.260.0040.01215.61
7.1.200.0050.00515.86
7.1.90.0030.01018.54
7.1.80.0080.00518.29
7.1.70.0080.00417.21
7.1.60.0160.01235.21
7.1.50.0160.01334.87
7.1.40.0210.01034.42
7.1.30.0150.01934.52
7.1.20.0150.01134.88
7.1.10.0050.00916.74
7.1.00.0040.01116.92
7.0.230.0050.00817.84
7.0.220.0120.00317.68
7.0.210.0060.00616.88
7.0.200.0000.01316.94
7.0.190.0030.01016.73
7.0.180.0030.01216.29
7.0.170.0090.00616.18
7.0.160.0000.01316.32
7.0.150.0000.01716.09
7.0.140.0040.01516.34
7.0.130.0060.00916.79
7.0.120.0000.01416.36
7.0.110.0040.00916.38
7.0.100.0030.01016.46
7.0.90.0100.00316.43
7.0.80.0120.00016.36
7.0.70.0060.00616.43
7.0.60.0030.00916.32
7.0.50.0060.00616.71
7.0.40.0030.01016.50
7.0.30.0060.00616.51
7.0.20.0030.01016.77
7.0.10.0070.00416.52
7.0.00.0040.00716.46

preferences:
34.69 ms | 400 KiB | 5 Q