3v4l.org

run code in 300+ PHP versions simultaneously
<?php $re = '/(\d+)/m'; $str = 'JS35BX54NV33'; $subst = ' $1 '; $result = preg_replace($re, $subst, $str); echo "The result of the substitution is ".$result;

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.5.10.0100.00718.84
8.5.00.0090.01219.93
8.4.150.0020.00114.05
8.4.140.0170.00417.85
8.4.130.0100.01017.93
8.4.120.0080.01222.60
8.4.110.0110.01018.90
8.4.100.0050.00417.93
8.4.90.0060.00222.57
8.4.80.0040.00518.13
8.4.70.0120.01017.95
8.4.60.0130.00619.14
8.4.50.0070.00818.72
8.4.40.0060.01317.94
8.4.30.0160.00318.27
8.4.20.0090.00019.82
8.4.10.0110.00719.78
8.3.280.0100.01018.51
8.3.270.0150.00516.54
8.3.260.0110.00916.60
8.3.250.0100.00918.96
8.3.240.0120.00716.67
8.3.230.0120.00716.86
8.3.220.0080.00816.96
8.3.210.0050.00316.57
8.3.200.0060.00316.74
8.3.190.0090.01016.58
8.3.180.0050.00518.45
8.3.170.0140.00418.96
8.3.160.0100.01018.49
8.3.150.0140.00418.50
8.3.140.0000.00917.04
8.3.130.0150.00318.27
8.3.120.0070.01120.50
8.3.110.0000.00820.94
8.3.100.0000.00824.06
8.3.90.0040.00426.77
8.3.80.0060.00316.70
8.3.70.0190.00016.58
8.3.60.0090.01218.56
8.3.50.0120.00124.54
8.3.40.0110.00420.52
8.3.30.0070.00718.89
8.3.20.0050.00220.74
8.3.10.0040.00420.16
8.3.00.0000.00822.58
8.2.290.0120.00720.54
8.2.280.0090.00619.98
8.2.270.0060.01218.95
8.2.260.0120.00316.58
8.2.250.0080.00016.68
8.2.240.0120.00317.18
8.2.230.0040.00422.58
8.2.220.0040.00437.54
8.2.210.0100.01026.77
8.2.200.0100.00016.75
8.2.190.0210.00016.63
8.2.180.0070.01125.92
8.2.170.0120.00319.08
8.2.160.0040.01122.96
8.2.150.0090.00025.66
8.2.140.0050.00324.66
8.2.130.0030.00526.16
8.2.120.0040.00421.04
8.2.110.0090.00822.31
8.2.100.0070.00417.84
8.2.90.0000.00817.84
8.2.80.0050.00319.89
8.2.70.0030.00517.75
8.2.60.0000.00918.05
8.2.50.0050.00318.07
8.2.40.0090.00020.07
8.2.30.0000.00818.07
8.2.20.0040.00417.96
8.2.10.0000.00719.25
8.2.00.0040.00419.28
8.1.330.0070.01121.82
8.1.320.0130.00816.30
8.1.310.0030.01018.38
8.1.300.0070.01119.86
8.1.290.0040.01118.88
8.1.280.0090.00625.92
8.1.270.0000.00820.49
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0110.00019.39
8.1.230.0040.00822.81
8.1.220.0060.00317.76
8.1.210.0080.00018.77
8.1.200.0000.00917.47
8.1.190.0030.00517.36
8.1.180.0040.00418.10
8.1.170.0050.00318.63
8.1.160.0000.00818.88
8.1.150.0040.00418.75
8.1.140.0070.00018.75
8.1.130.0030.00320.08
8.1.120.0080.00017.61
8.1.110.0040.00417.41
8.1.100.0020.00617.53
8.1.90.0100.00217.48
8.1.80.0070.00617.47
8.1.70.0070.00417.52
8.1.60.0130.00017.64
8.1.50.0060.00617.58
8.1.40.0120.00417.58
8.1.30.0110.00517.66
8.1.20.0110.00417.66
8.1.10.0070.00617.63
8.1.00.0150.00317.59
8.0.300.0030.00520.04
8.0.290.0000.00716.88
8.0.280.0040.00418.54
8.0.270.0000.00818.22
8.0.260.0060.00019.98
8.0.250.0030.00317.13
8.0.240.0060.00017.05
8.0.230.0130.00216.91
8.0.220.0050.00516.97
8.0.210.0090.00416.93
8.0.200.0020.00617.09
8.0.190.0040.00717.04
8.0.180.0030.01016.99
8.0.170.0080.00516.97
8.0.160.0070.00416.96
8.0.150.0080.00416.97
8.0.140.0120.00116.94
8.0.130.0080.00515.88
8.0.120.0090.00416.98
8.0.110.0090.00517.00
8.0.100.0070.00516.94
8.0.90.0070.00416.95
8.0.80.0060.00816.93
8.0.70.0070.00716.86
8.0.60.0080.00716.88
8.0.50.0110.00416.95
8.0.30.0140.00516.99
8.0.20.0120.00617.07
8.0.10.0050.00717.08
8.0.00.0090.00417.01
7.4.330.0000.00515.55
7.4.320.0030.00316.73
7.4.300.0090.00316.69
7.4.290.0110.00516.66
7.4.280.0090.00416.59
7.4.270.0050.00716.62
7.4.260.0060.00515.56
7.4.250.0080.00416.66
7.4.240.0080.00616.73
7.4.230.0100.00516.70
7.4.220.0100.00416.61
7.4.210.0120.00516.72
7.4.200.0090.00416.65
7.4.190.0070.00816.65
7.4.180.0080.00716.64
7.4.160.0140.00116.71
7.4.150.0120.00316.69
7.4.140.0110.00316.67
7.4.130.0090.00916.59
7.4.120.0100.00816.58
7.4.110.0150.00516.67
7.4.100.0120.00616.71
7.4.90.0130.00616.62
7.4.80.0070.01317.61
7.4.70.0110.00616.52
7.4.60.0090.00816.65
7.4.50.0110.00416.59
7.4.40.0090.00716.54
7.4.30.0110.00616.49
7.4.20.0140.00516.47
7.4.10.0100.00716.59
7.4.00.0070.00916.57
7.3.330.0100.00616.36
7.3.320.0120.00315.36
7.3.310.0110.00416.28
7.3.300.0110.00416.27
7.3.290.0110.00616.28
7.3.280.0080.00716.29
7.3.270.0110.00716.25
7.3.260.0150.00416.40
7.3.250.0150.00316.37
7.3.240.0100.00916.38
7.3.230.0150.00516.40
7.3.220.0120.00516.27
7.3.210.0140.00316.29
7.3.200.0120.00516.27
7.3.190.0130.00516.25
7.3.180.0120.00616.22
7.3.170.0120.00516.34
7.3.160.0140.00416.32
7.3.150.0120.00616.29
7.3.140.0140.00416.36
7.3.130.0090.00816.33
7.3.120.0100.00816.38
7.3.110.0090.00816.26
7.3.100.0150.00216.32
7.3.90.0100.00916.58
7.3.80.0110.00616.38
7.3.70.0110.00716.37
7.3.60.0110.00616.48
7.3.50.0090.00916.42
7.3.40.0130.00516.42
7.3.30.0130.00516.54
7.3.20.0290.01017.69
7.3.10.0140.00517.66
7.3.00.0140.00717.62
7.2.340.0110.00516.67
7.2.330.0150.00516.72
7.2.320.0130.00616.50
7.2.310.0130.00516.67
7.2.300.0140.00516.59
7.2.290.0100.00916.69
7.2.280.0130.00616.62
7.2.270.0110.00616.72
7.2.260.0110.00616.67
7.2.250.0120.00716.59
7.2.240.0110.00816.55
7.2.230.0140.00516.64
7.2.220.0110.00816.65
7.2.210.0130.00516.56
7.2.200.0150.00416.68
7.2.190.0140.00316.77
7.2.180.0130.00516.71
7.2.170.0150.00416.80
7.2.160.0140.00516.79
7.2.150.0090.01017.92
7.2.140.0130.00717.96
7.2.130.0100.00918.11
7.2.120.0150.00618.02
7.2.110.0110.00917.99
7.2.100.0140.00618.05
7.2.90.0120.00717.92
7.2.80.0140.00418.03
7.2.70.0130.00618.00
7.2.60.0110.00717.98
7.2.50.0140.00417.95
7.2.40.0110.00817.89
7.2.30.0140.00518.02
7.2.20.0070.01317.99
7.2.10.0120.00717.91
7.2.00.0150.00418.01

preferences:
27.74 ms | 403 KiB | 5 Q