3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'SELECT * FROM site_customers LEFT JOIN site_products'; $pattern = '/SELECT \* FROM (\bsite_[a-zA-Z0-9]*) LEFT JOIN (\bsite_[a-zA-Z0-9]*)/'; $replacement = 'SELECT * FROM $1_02 LEFT JOIN new_$2'; 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.5.10.0120.00616.64
8.5.00.0140.00920.07
8.4.150.0020.00114.05
8.4.140.0110.01117.50
8.4.130.0140.00618.04
8.4.120.0050.00424.20
8.4.110.0120.00922.79
8.4.100.0080.01219.04
8.4.90.0110.00818.71
8.4.80.0120.00620.39
8.4.70.0110.00818.17
8.4.60.0130.01118.72
8.4.50.0080.01218.63
8.4.40.0060.00919.77
8.4.30.0140.00719.51
8.4.20.0080.00318.93
8.4.10.0100.00717.90
8.3.280.0110.00818.55
8.3.270.0080.01116.78
8.3.260.0090.01116.84
8.3.250.0140.00518.72
8.3.240.0100.01017.24
8.3.230.0130.00616.69
8.3.220.0050.00420.46
8.3.210.0100.00916.74
8.3.200.0040.00516.54
8.3.190.0120.00617.20
8.3.180.0120.00716.71
8.3.170.0130.00320.63
8.3.160.0060.01317.29
8.3.150.0100.01017.00
8.3.140.0120.00616.94
8.3.130.0070.01018.43
8.3.120.0060.01318.90
8.3.110.0150.00016.68
8.3.100.0090.00616.56
8.3.90.0100.00026.77
8.3.80.0000.01016.50
8.3.70.0160.00316.58
8.3.60.0090.00618.43
8.3.50.0110.00518.19
8.3.40.0120.00618.73
8.3.30.0040.01118.84
8.3.20.0050.00221.82
8.3.10.0000.00823.69
8.3.00.0040.00423.49
8.2.290.0110.00720.38
8.2.280.0140.00418.65
8.2.270.0100.01016.93
8.2.260.0000.00918.43
8.2.250.0070.00018.69
8.2.240.0060.00317.16
8.2.230.0030.00620.94
8.2.220.0100.00324.06
8.2.210.0030.00526.77
8.2.200.0030.00618.29
8.2.190.0110.00716.75
8.2.180.0120.00625.92
8.2.170.0060.01518.83
8.2.160.0100.00320.38
8.2.150.0000.00824.18
8.2.140.0030.00624.66
8.2.130.0040.00426.16
8.2.120.0040.00421.07
8.2.110.0060.00320.47
8.2.100.0070.00717.72
8.2.90.0080.00017.88
8.2.80.0050.00317.97
8.2.70.0040.00418.04
8.2.60.0050.00518.03
8.2.50.0040.00418.10
8.2.40.0040.00419.51
8.2.30.0040.00419.20
8.2.20.0000.00718.13
8.2.10.0000.00719.11
8.2.00.0070.00019.34
8.1.330.0110.00722.00
8.1.320.0110.00816.42
8.1.310.0110.00418.39
8.1.300.0120.00618.71
8.1.290.0060.00330.84
8.1.280.0030.01325.92
8.1.270.0080.00018.95
8.1.260.0030.00626.35
8.1.250.0000.00728.09
8.1.240.0090.00023.83
8.1.230.0040.00720.93
8.1.220.0090.00017.74
8.1.210.0050.00318.77
8.1.200.0060.00317.36
8.1.190.0030.00617.41
8.1.180.0060.00318.10
8.1.170.0050.00318.63
8.1.160.0070.00018.74
8.1.150.0000.00718.86
8.1.140.0000.00722.20
8.1.130.0000.00720.11
8.1.120.0000.00717.59
8.1.110.0030.00617.50
8.1.100.0000.00717.56
8.1.90.0000.00717.57
8.1.80.0000.00717.53
8.1.70.0000.00717.56
8.1.60.0040.00417.70
8.1.50.0090.00017.50
8.1.40.0040.00417.66
8.1.30.0050.00317.78
8.1.20.0040.00417.59
8.1.10.0030.00617.62
8.1.00.0060.00317.63
8.0.300.0040.00420.16
8.0.290.0000.00716.88
8.0.280.0030.00318.46
8.0.270.0000.00717.39
8.0.260.0070.00018.38
8.0.250.0070.00017.14
8.0.240.0030.00517.11
8.0.230.0020.00516.95
8.0.220.0070.00316.98
8.0.210.0040.00416.94
8.0.200.0000.00716.89
8.0.190.0040.00416.93
8.0.180.0040.00417.00
8.0.170.0050.00316.93
8.0.160.0050.00216.91
8.0.150.0040.00316.93
8.0.140.0070.00016.83
8.0.130.0030.00313.36
8.0.120.0040.00416.85
8.0.110.0080.00016.92
8.0.100.0000.00817.04
8.0.90.0040.00416.88
8.0.80.0080.01016.95
8.0.70.0040.00417.04
8.0.60.0000.00816.98
8.0.50.0030.00516.82
8.0.30.0120.00617.09
8.0.20.0130.00917.40
8.0.10.0040.00416.89
8.0.00.0050.01316.83
7.4.330.0050.00016.74
7.4.320.0030.00316.67
7.4.300.0050.00216.75
7.4.290.0050.00316.66
7.4.280.0030.00616.59
7.4.270.0030.00316.73
7.4.260.0000.00716.73
7.4.250.0040.00416.71
7.4.240.0040.00416.65
7.4.230.0070.00016.75
7.4.220.0030.00516.56
7.4.210.0070.00716.70
7.4.200.0020.00516.73
7.4.160.0110.00716.66
7.4.140.0080.01017.86
7.4.130.0110.00516.70
7.4.120.0070.01416.55
7.4.110.0140.00416.68
7.4.100.0060.01616.59
7.4.90.0100.00616.71
7.4.80.0080.01619.39
7.4.70.0190.00216.51
7.4.60.0130.00916.71
7.4.50.0040.01416.71
7.4.40.0100.00616.48
7.4.00.0000.01315.31
7.3.330.0000.00513.04
7.3.320.0000.00613.08
7.3.310.0060.00316.15
7.3.300.0080.00016.33
7.3.290.0030.00316.15
7.3.280.0090.01116.25
7.3.260.0090.00916.61
7.3.240.0150.00616.45
7.3.230.0070.01016.46
7.3.210.0090.00916.73
7.3.200.0130.01016.33
7.3.190.0110.01016.30
7.3.180.0080.00816.72
7.3.170.0130.01016.56
7.3.160.0130.00716.58
7.3.00.0490.00714.97
7.2.330.0030.01516.79
7.2.320.0140.01016.73
7.2.310.0110.00616.85
7.2.300.0030.01316.68
7.2.290.0070.01116.61
7.2.130.0880.01415.00
7.2.120.0710.00715.17
7.2.110.0410.00715.07
7.2.100.0730.01315.18
7.2.90.0460.00415.17
7.2.80.0790.00715.07
7.2.70.0550.00715.31
7.2.60.0430.01015.14
7.2.50.0710.00315.14
7.2.40.0030.01415.00
7.2.30.0160.00614.86
7.2.20.0970.00315.12
7.2.10.0890.00615.18
7.2.00.0570.00614.93
7.1.250.0720.01013.96
7.0.330.0710.00913.85
5.6.380.0030.01314.48

preferences:
38.16 ms | 403 KiB | 5 Q