3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'April 15, 2003'; $pattern = '/(\w+) (\d+), (\d+)/i'; $replacement = '${1}1,$3'; 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.00616.50
8.3.50.0120.00722.08
8.3.40.0120.00318.89
8.3.30.0110.00318.97
8.3.20.0040.00419.13
8.3.10.0040.00421.60
8.3.00.0000.00819.18
8.2.180.0110.00416.88
8.2.170.0090.00622.96
8.2.160.0030.01020.32
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0000.00719.95
8.2.120.0040.00426.35
8.2.110.0030.00619.33
8.2.100.0080.00417.78
8.2.90.0000.00819.23
8.2.80.0090.00017.97
8.2.70.0040.00417.88
8.2.60.0030.00518.16
8.2.50.0000.00818.10
8.2.40.0040.00422.31
8.2.30.0050.00219.25
8.2.20.0050.00317.86
8.2.10.0040.00417.95
8.2.00.0040.00417.88
8.1.280.0110.01125.92
8.1.270.0030.00523.79
8.1.260.0050.00328.09
8.1.250.0080.00028.09
8.1.240.0000.00823.80
8.1.230.0080.00319.00
8.1.220.0050.00317.74
8.1.210.0070.00318.77
8.1.200.0090.00017.35
8.1.190.0040.00417.35
8.1.180.0040.00418.10
8.1.170.0030.00618.72
8.1.160.0000.00819.03
8.1.150.0040.00418.79
8.1.140.0050.00219.52
8.1.130.0020.00617.63
8.1.120.0070.00417.48
8.1.110.0070.00617.51
8.1.100.0070.00517.48
8.1.90.0050.00517.51
8.1.80.0080.00317.55
8.1.70.0070.00517.54
8.1.60.0100.00317.60
8.1.50.0080.00617.53
8.1.40.0090.00617.57
8.1.30.0110.00417.68
8.1.20.0100.00617.69
8.1.10.0110.00417.61
8.1.00.0080.00517.52
8.0.300.0000.00820.09
8.0.290.0000.00716.88
8.0.280.0090.00018.41
8.0.270.0030.00317.27
8.0.260.0030.00617.05
8.0.250.0050.00417.00
8.0.240.0060.00617.04
8.0.230.0100.00216.91
8.0.220.0100.00416.93
8.0.210.0090.00416.94
8.0.200.0090.00416.98
8.0.190.0090.00416.95
8.0.180.0050.00716.87
8.0.170.0080.00516.89
8.0.160.0070.00516.93
8.0.150.0090.00316.84
8.0.140.0050.00616.84
8.0.130.0090.00416.26
8.0.120.0060.00616.78
8.0.110.0080.00316.87
8.0.100.0090.00316.92
8.0.90.0060.00616.88
8.0.80.0050.00816.93
8.0.70.0090.00416.95
8.0.60.0080.00416.88
8.0.50.0060.00516.88
8.0.30.0100.00416.94
8.0.20.0090.00617.06
8.0.10.0070.00417.05
8.0.00.0050.00516.99
7.4.330.0000.00516.02
7.4.320.0090.00316.72
7.4.300.0110.00516.69
7.4.290.0080.00516.73
7.4.280.0100.00416.57
7.4.270.0100.00416.68
7.4.260.0110.00316.63
7.4.250.0080.00616.62
7.4.240.0080.00516.60
7.4.230.0060.00616.62
7.4.220.0060.00716.56
7.4.210.0080.00516.66
7.4.200.0060.00616.68
7.4.190.0100.00316.75
7.4.180.0080.00516.71
7.4.160.0090.00416.61
7.4.150.0110.00316.68
7.4.140.0090.00616.97
7.4.130.0100.00516.57
7.4.120.0080.00616.62
7.4.110.0060.00716.59
7.4.100.0110.00316.66
7.4.90.0080.00516.60
7.4.80.0080.00617.05
7.4.70.0090.00516.67
7.4.60.0070.00616.63
7.4.50.0080.00516.52
7.4.40.0060.00716.62
7.4.30.0100.00316.54
7.4.20.0090.00316.58
7.4.10.0090.00316.52
7.4.00.0100.00316.16
7.3.330.0090.00415.76
7.3.320.0080.00515.76
7.3.310.0110.00316.37
7.3.300.0100.00316.36
7.3.290.0070.00516.40
7.3.280.0080.00716.37
7.3.270.0080.00616.52
7.3.260.0090.00716.41
7.3.250.0100.00516.34
7.3.240.0080.00716.40
7.3.230.0100.00416.41
7.3.220.0110.00316.29
7.3.210.0100.00416.44
7.3.200.0090.00416.30
7.3.190.0100.00516.34
7.3.180.0100.00416.30
7.3.170.0060.00916.34
7.3.160.0120.00716.33
7.3.150.0100.00416.34
7.3.140.0110.00216.36
7.3.130.0110.00316.34
7.3.120.0070.00716.17
7.3.110.0110.00315.99
7.3.100.0110.00316.07
7.3.90.0100.00316.32
7.3.80.0090.00516.07
7.3.70.0100.00316.15
7.3.60.0090.00416.24
7.3.50.0080.00616.27
7.3.40.0100.00316.26
7.3.30.0070.00616.31
7.3.20.0080.00617.42
7.3.10.0100.00317.36
7.3.00.0090.00617.41
7.2.340.0090.00416.51
7.2.330.0090.00616.50
7.2.320.0120.00416.51
7.2.310.0110.00416.55
7.2.300.0090.00616.52
7.2.290.0080.00616.50
7.2.280.0090.00516.45
7.2.270.0080.00616.54
7.2.260.0110.00216.46
7.2.250.0110.00316.29
7.2.240.0100.00516.30
7.2.230.0100.00416.31
7.2.220.0090.00516.32
7.2.210.0090.00516.34
7.2.200.0090.00616.39
7.2.190.0110.00316.34
7.2.180.0090.00516.36
7.2.170.0080.00516.45
7.2.160.0100.00316.63
7.2.150.0110.00417.81
7.2.140.0100.00417.82
7.2.130.0120.00217.96
7.2.120.0120.00417.87
7.2.110.0110.00317.86
7.2.100.0100.00417.84
7.2.90.0100.00517.79
7.2.80.0100.00517.78
7.2.70.0120.00217.88
7.2.60.0120.00317.86
7.2.50.0100.00517.81
7.2.40.0090.00517.79
7.2.30.0110.00617.83
7.2.20.0080.00717.86
7.2.10.0100.00517.83
7.2.00.0120.00317.84
7.1.330.0080.00616.66
7.1.320.0100.00416.56
7.1.310.0080.00416.63
7.1.300.0110.00316.56
7.1.290.0110.00316.74
7.1.280.0100.00316.57
7.1.270.0090.00516.61
7.1.260.0100.00316.51
7.1.250.0090.00516.65
7.1.240.0160.00516.66
7.1.230.0100.00316.76
7.1.220.0070.00616.65
7.1.210.0090.00416.72
7.1.200.0090.00416.66
7.1.190.0090.00416.71
7.1.180.0100.00416.63
7.1.170.0090.00416.68
7.1.160.0110.00216.66
7.1.150.0100.00516.69
7.1.140.0100.00416.66
7.1.130.0090.00416.77
7.1.120.0060.00716.76
7.1.110.0080.00516.71
7.1.100.0090.00416.77
7.1.90.0090.00416.74
7.1.80.0100.00416.84
7.1.70.0090.00516.57
7.1.60.0070.00616.85
7.1.50.0070.00716.87
7.1.40.0100.00416.88
7.1.30.0100.00416.83
7.1.20.0120.00416.87
7.1.10.0100.00416.69
7.1.00.0100.00416.75
7.0.330.0110.00216.49
7.0.320.0100.00216.45
7.0.310.0080.00516.46
7.0.300.0090.00416.45
7.0.290.0110.00316.43
7.0.280.0110.00316.42
7.0.270.0130.00216.46
7.0.260.0100.00416.43
7.0.250.0100.00316.49
7.0.240.0100.00316.57
7.0.230.0080.00516.58
7.0.220.0090.00516.48
7.0.210.0110.00416.49
7.0.200.0110.00216.53
7.0.190.0070.00616.52
7.0.180.0090.00416.50
7.0.170.0090.00416.69
7.0.160.0100.00316.46
7.0.150.0080.00516.35
7.0.140.0060.00816.38
7.0.130.0080.00416.45
7.0.120.0100.00316.50
7.0.110.0080.00416.37
7.0.100.0060.00716.50
7.0.90.0090.00416.29
7.0.80.0080.00416.38
7.0.70.0110.00216.35
7.0.60.0420.00615.96
7.0.50.0580.00415.82
7.0.40.0510.00315.98
7.0.30.0430.00515.94
7.0.20.0450.00415.91
7.0.10.0440.00316.00
7.0.00.0420.00315.92
5.6.400.0080.00416.02
5.6.390.0080.00615.93
5.6.380.0080.00415.95
5.6.370.0090.00315.90
5.6.360.0090.00315.93
5.6.350.0090.00315.89
5.6.340.0090.00316.03
5.6.330.0080.00415.96
5.6.320.0080.00516.03
5.6.310.0100.00315.85
5.6.300.0080.00415.80
5.6.290.0100.00215.92
5.6.280.0070.00515.99
5.6.270.0090.00215.97
5.6.260.0090.00315.94
5.6.250.0100.00215.90
5.6.240.0070.00515.94
5.6.230.0070.00516.06
5.6.220.0060.00616.02
5.6.210.0090.00415.73
5.6.200.0080.00515.85
5.6.190.0070.00515.83
5.6.180.0090.00415.82
5.6.170.0090.00415.82
5.6.160.0090.00415.82
5.6.150.0100.00315.81
5.6.140.0090.00415.67
5.6.130.0080.00515.79
5.6.120.0070.00615.84
5.6.110.0080.00515.75
5.6.100.0090.00415.70
5.6.90.0080.00515.75
5.6.80.0080.00515.69
5.6.70.0080.00415.71
5.6.60.0060.00615.72
5.6.50.0090.00415.67
5.6.40.0060.00615.65
5.6.30.0060.00715.75
5.6.20.0080.00415.69
5.6.10.0080.00415.67
5.6.00.0090.00415.66
5.5.380.0100.00216.00
5.5.370.0090.00216.03
5.5.360.0070.00515.89
5.5.350.0100.00315.13
5.5.340.0070.00515.15
5.5.330.0060.00615.07
5.5.320.0060.00615.16
5.5.310.0070.00515.11
5.5.300.0100.00215.13
5.5.290.0080.00415.16
5.5.280.0070.00515.21
5.5.270.0080.00415.12
5.5.260.0070.00515.21
5.5.250.0090.00415.23
5.5.240.0070.00515.25
5.5.230.0080.00415.16
5.5.220.0080.00415.16
5.5.210.0080.00415.20
5.5.200.0070.00415.17
5.5.190.0080.00415.06
5.5.180.0070.00515.13
5.5.170.0080.00515.63
5.5.160.0060.00615.14
5.5.150.0100.00215.11
5.5.140.0070.00515.06
5.5.130.0070.00514.98
5.5.120.0080.00415.05
5.5.110.0070.00615.03
5.5.100.0060.00515.12
5.5.90.0070.00415.09
5.5.80.0070.00415.15
5.5.70.0090.00415.07
5.5.60.0090.00315.21
5.5.50.0090.00315.14
5.5.40.0070.00515.18
5.5.30.0080.00515.19
5.5.20.0080.00415.21
5.5.10.0080.00315.01
5.5.00.0090.00315.06

preferences:
40.08 ms | 404 KiB | 6 Q