3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'asdfnsdfasdjkl <span class="number_box">1.</span> asdfkjsadfasd'; printf (preg_replace('/<span class="number_box">(\d).<\/span>/', '<span class="number_box">$1</span>', $str));

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.70.0120.00616.61
8.3.60.0070.01116.75
8.3.50.0090.00921.92
8.3.40.0090.00618.79
8.3.30.0100.00318.96
8.3.20.0040.00420.35
8.3.10.0050.00323.70
8.3.00.0050.00219.14
8.2.180.0030.01218.48
8.2.170.0070.01022.96
8.2.160.0120.00920.49
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0000.00826.16
8.2.120.0040.00420.99
8.2.110.0060.00319.21
8.2.100.0040.00817.78
8.2.90.0030.00520.89
8.2.80.0030.00517.97
8.2.70.0090.00017.75
8.2.60.0040.00417.80
8.2.50.0000.00818.07
8.2.40.0060.00319.84
8.2.30.0040.00418.09
8.2.20.0070.00017.71
8.2.10.0000.00718.02
8.2.00.0000.01017.63
8.1.280.0110.00325.92
8.1.270.0040.00423.96
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0050.00522.42
8.1.230.0060.00620.92
8.1.220.0080.00417.74
8.1.210.0030.00518.85
8.1.200.0030.00617.35
8.1.190.0000.00817.25
8.1.180.0000.00818.10
8.1.170.0030.00518.61
8.1.160.0000.00722.01
8.1.150.0000.00718.63
8.1.140.0040.00417.58
8.1.130.0070.00017.86
8.1.120.0000.00717.49
8.1.110.0070.00017.52
8.1.100.0080.00017.56
8.1.90.0000.00717.45
8.1.80.0050.00217.51
8.1.70.0000.00717.56
8.1.60.0000.00717.68
8.1.50.0000.00817.55
8.1.40.0040.00417.64
8.1.30.0050.00317.77
8.1.20.0000.00817.70
8.1.10.0040.00417.55
8.1.00.0070.00017.45
8.0.300.0040.00419.89
8.0.290.0030.00517.03
8.0.280.0000.00818.34
8.0.270.0030.00317.13
8.0.260.0030.00317.27
8.0.250.0030.00316.93
8.0.240.0030.00316.99
8.0.230.0000.00717.11
8.0.220.0040.00416.97
8.0.210.0070.00016.93
8.0.200.0000.00717.03
8.0.190.0040.00417.01
8.0.180.0000.00716.95
8.0.170.0040.00417.00
8.0.160.0040.00416.90
8.0.150.0040.00416.93
8.0.140.0000.00716.99
8.0.130.0030.00313.39
8.0.120.0000.00816.79
8.0.110.0000.00717.04
8.0.100.0020.00517.03
8.0.90.0040.00416.88
8.0.80.0090.00616.92
8.0.70.0080.00016.78
8.0.60.0040.00416.98
8.0.50.0060.00317.02
8.0.30.0060.01417.14
8.0.20.0140.00917.40
8.0.10.0000.00717.20
8.0.00.0100.01016.79
7.4.330.0050.00015.16
7.4.320.0000.00616.57
7.4.300.0040.00416.73
7.4.290.0000.00716.77
7.4.280.0000.00716.64
7.4.270.0070.00016.76
7.4.260.0050.00516.63
7.4.250.0030.00616.72
7.4.240.0000.00716.67
7.4.230.0000.00716.81
7.4.220.0080.00816.73
7.4.210.0070.00616.69
7.4.200.0000.00716.85
7.4.190.0040.00416.71
7.4.160.0130.00316.69
7.4.150.0130.00317.40
7.4.140.0090.00917.86
7.4.130.0090.00916.62
7.4.120.0090.00816.73
7.4.110.0120.00616.43
7.4.100.0100.00716.70
7.4.90.0190.00416.49
7.4.80.0090.00919.39
7.4.70.0100.01016.55
7.4.60.0070.01016.70
7.4.50.0000.00516.33
7.4.40.0170.00016.57
7.4.30.0090.01516.59
7.4.00.0090.00614.74
7.3.330.0030.00313.13
7.3.320.0050.00013.02
7.3.310.0000.00716.36
7.3.300.0030.00316.28
7.3.290.0090.00616.28
7.3.280.0090.00916.30
7.3.270.0070.01017.40
7.3.260.0140.01116.53
7.3.250.0060.01116.33
7.3.240.0140.00316.39
7.3.230.0060.01316.45
7.3.210.0100.00716.31
7.3.200.0060.01319.39
7.3.190.0130.01016.23
7.3.180.0060.01016.57
7.3.170.0070.01016.43
7.3.160.0130.00316.40
7.3.120.0100.00714.56
7.3.10.0050.00816.50
7.3.00.0070.00316.62
7.2.330.0060.01216.63
7.2.320.0090.01216.45
7.2.310.0060.01116.59
7.2.300.0130.00316.59
7.2.290.0100.00716.51
7.2.130.0050.00816.88
7.2.120.0050.00816.74
7.2.110.0080.00516.84
7.2.100.0070.00416.86
7.2.90.0080.00417.02
7.2.80.0020.01116.86
7.2.70.0050.00716.82
7.2.60.0060.00816.84
7.2.50.0080.00516.82
7.2.40.0050.00816.82
7.2.30.0060.00516.90
7.2.20.0020.01116.75
7.2.10.0090.00516.78
7.2.00.0080.00317.31
7.1.250.0020.00815.81
7.1.240.0120.00615.86
7.1.230.0000.01115.96
7.1.220.0070.00416.02
7.1.210.0040.00715.95
7.1.200.0070.00715.78
7.1.190.0030.01315.61
7.1.180.0090.00315.87
7.1.170.0060.00615.72
7.1.160.0040.00716.07
7.1.150.0040.00816.04
7.1.140.0030.00615.86
7.1.130.0080.00415.89
7.1.120.0060.00615.69
7.1.110.0070.00715.93
7.1.100.0100.00716.82
7.1.90.0030.00915.77
7.1.80.0000.01215.85
7.1.70.0040.00616.40
7.1.60.0110.00917.71
7.1.50.0060.01316.56
7.1.40.0000.00815.83
7.1.30.0050.00515.84
7.1.20.0000.01416.03
7.1.10.0060.00315.70
7.1.00.0000.04619.04
7.0.330.0080.00815.30
7.0.320.0080.00815.48
7.0.310.0030.01015.15
7.0.300.0060.00615.71
7.0.290.0060.00615.47
7.0.280.0070.00715.40
7.0.270.0030.00615.61
7.0.260.0030.00615.55
7.0.250.0000.00815.74
7.0.240.0050.00515.45
7.0.230.0000.01415.49
7.0.220.0100.00715.73
7.0.210.0050.00815.49
7.0.200.0090.00415.94
7.0.190.0120.00615.73
7.0.180.0020.00715.34
7.0.170.0000.00915.45
7.0.160.0120.00415.52
7.0.150.0040.00815.75
7.0.140.0050.04018.69
7.0.130.0000.00815.41
7.0.120.0000.01415.29
7.0.110.0000.01015.41
7.0.100.0120.00315.48
7.0.90.0060.00915.61
7.0.80.0060.00815.59
7.0.70.0030.00915.62
7.0.60.0060.04717.69
7.0.50.0110.03116.76
7.0.40.0080.02516.78
7.0.30.0180.04216.87
7.0.20.0180.04716.71
7.0.10.0050.02516.82
7.0.00.0080.04316.87
5.6.380.0090.00614.09
5.6.370.0080.00414.25
5.6.360.0060.00914.36
5.6.350.0030.01014.20
5.6.340.0000.01114.38
5.6.330.0030.00714.62
5.6.320.0060.00614.22
5.6.310.0080.00314.16
5.6.300.0100.00314.50
5.6.290.0070.00314.08
5.6.280.0020.04317.69
5.6.270.0040.00814.47
5.6.260.0000.00914.09
5.6.250.0000.01214.17
5.6.240.0060.00614.32
5.6.230.0090.00614.21
5.6.220.0040.01114.04
5.6.210.0050.04817.48
5.6.200.0070.04316.20
5.6.190.0050.03317.47
5.6.180.0250.03617.22
5.6.170.0170.02217.39
5.6.160.0040.02717.36
5.6.150.0070.02716.09
5.6.140.0070.04516.19
5.6.130.0080.04516.17
5.6.120.0030.02617.61
5.6.110.0070.04617.54
5.6.100.0100.02817.64
5.6.90.0080.02817.59
5.6.80.0080.04317.36
5.6.70.0040.00714.17
5.6.60.0040.00714.06
5.6.50.0040.00714.30
5.6.40.0080.00413.99
5.6.30.0040.00813.93
5.6.20.0060.00314.47
5.6.10.0090.00514.05
5.6.00.0040.00914.47
5.5.380.0030.00611.16
5.5.370.0090.00310.89
5.5.360.0050.00510.63
5.5.350.0190.03915.83
5.5.340.0030.04014.64
5.5.330.0070.04215.61
5.5.320.0130.04315.67
5.5.310.0130.04015.70
5.5.300.0120.02214.44
5.5.290.0040.04314.51
5.5.280.0020.04915.89
5.5.270.0040.02515.96
5.5.260.0100.03215.66
5.5.250.0060.03615.69
5.5.240.0030.04215.53
5.5.230.0030.00610.60
5.5.220.0040.00411.00
5.5.210.0050.00310.91
5.5.200.0030.00510.75
5.5.190.0000.01210.98
5.5.180.0000.00810.88
5.5.170.0080.00010.92
5.5.160.0030.00610.96
5.5.150.0050.00510.95
5.5.140.0040.00210.82
5.5.130.0090.00010.79
5.5.120.0060.00310.82
5.5.110.0030.00611.02
5.5.100.0070.00310.83
5.5.90.0040.00410.93
5.5.80.0060.00011.20
5.5.70.0040.00411.01
5.5.60.0070.00410.96
5.5.50.0000.00710.89
5.5.40.0000.00910.46
5.5.30.0000.01010.68
5.5.20.0070.00510.76
5.5.10.0000.01011.09
5.5.00.0070.00711.08
5.4.450.0350.03315.12
5.4.440.0350.03015.24
5.4.430.0380.02515.33
5.4.420.0500.02815.12
5.4.410.0360.03315.11
5.4.400.0440.02615.12
5.4.390.0410.03015.02
5.4.380.0140.02514.64
5.4.370.0130.02614.82
5.4.360.0070.03214.76
5.4.350.0090.03514.67
5.4.340.0090.02714.79
5.4.330.0080.00410.92
5.4.320.0040.02411.71
5.4.310.0040.02211.56
5.4.300.0060.02111.72
5.4.290.0100.02611.71
5.4.280.0060.02611.53
5.4.270.0020.02811.67
5.4.260.0050.02311.62
5.4.250.0050.02611.54
5.4.240.0030.02311.45
5.4.230.0060.02011.72
5.4.220.0050.02111.58
5.4.210.0050.02111.64
5.4.200.0040.02311.50
5.4.190.0040.02311.59
5.4.180.0030.02511.47
5.4.170.0050.02511.59
5.4.160.0060.02211.45
5.4.150.0040.02211.51
5.4.140.0050.03211.32
5.4.130.0050.03111.41
5.4.120.0080.02711.46
5.4.110.0060.02611.38
5.4.100.0080.03211.46
5.4.90.0060.02611.44
5.4.80.0070.03011.30
5.4.70.0090.02611.32
5.4.60.0040.02411.37
5.4.50.0060.02011.52
5.4.40.0050.02911.42
5.4.30.0080.02611.48
5.4.20.0060.02711.30
5.4.10.0020.03511.48
5.4.00.0090.02511.16
5.3.290.0030.02511.58
5.3.280.0040.03211.51
5.3.270.0080.02811.64
5.3.260.0050.03511.61
5.3.250.0070.03211.58
5.3.240.0050.03011.51
5.3.230.0070.02511.53
5.3.220.0060.02811.58
5.3.210.0050.02811.54
5.3.200.0040.02711.56
5.3.190.0090.02911.55
5.3.180.0040.03211.58
5.3.170.0040.03211.57
5.3.160.0080.03011.58
5.3.150.0040.02511.49
5.3.140.0090.01811.61
5.3.130.0060.02711.51
5.3.120.0050.03011.45
5.3.110.0060.02811.59
5.3.100.0090.02311.24
5.3.90.0070.03011.22
5.3.80.0060.02011.23
5.3.70.0040.02211.17
5.3.60.0060.02111.26
5.3.50.0040.02211.13
5.3.40.0070.02411.20
5.3.30.0060.02311.14
5.3.20.0050.02411.08
5.3.10.0060.01910.97
5.3.00.0070.02010.86
5.2.170.0030.0279.34
5.2.160.0070.0289.33
5.2.150.0060.0279.35
5.2.140.0050.0289.28
5.2.130.0080.0239.29
5.2.120.0060.0229.34
5.2.110.0060.0209.29
5.2.100.0060.0199.31
5.2.90.0070.0199.26
5.2.80.0040.0229.13
5.2.70.0060.0219.22
5.2.60.0070.0209.05
5.2.50.0020.0239.16
5.2.40.0050.0199.11
5.2.30.0070.0209.00
5.2.20.0070.0259.13
5.2.10.0050.0248.95
5.2.00.0060.0258.96
5.1.60.0070.0198.53
5.1.50.0060.0188.52
5.1.40.0070.0188.51
5.1.30.0040.0228.69
5.1.20.0040.0278.70
5.1.10.0050.0218.56
5.1.00.0050.0338.56
5.0.50.0040.0307.80
5.0.40.0070.0267.73
5.0.30.0050.0347.64
5.0.20.0030.0167.62
5.0.10.0030.0187.61
5.0.00.0010.0267.61
4.4.90.0020.0126.88
4.4.80.0010.0146.87
4.4.70.0020.0136.87
4.4.60.0020.0126.87
4.4.50.0050.0126.88
4.4.40.0020.0206.85
4.4.30.0070.0106.87
4.4.20.0020.0146.92
4.4.10.0030.0176.92
4.4.00.0040.0276.88
4.3.110.0020.0146.83
4.3.100.0050.0176.83
4.3.90.0030.0236.81
4.3.80.0010.0176.79
4.3.70.0020.0116.81
4.3.60.0010.0146.81
4.3.50.0040.0146.81
4.3.40.0020.0196.76
4.3.30.0040.0096.13
4.3.20.0020.0136.12
4.3.10.0040.0166.10
4.3.00.0020.0138.21

preferences:
49.37 ms | 401 KiB | 5 Q