3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'SELECT * FROM site_customers LEFT JOIN site_products'; $pattern = '/\bsite_[a-zA-Z]*/'; $replacement = '$0_02'; 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.00.0110.01220.05
8.4.150.0020.00014.05
8.4.140.0130.00817.64
8.4.130.0120.00918.14
8.4.120.0100.00923.84
8.4.110.0120.00822.70
8.4.100.0050.00419.02
8.4.90.0030.00618.95
8.4.80.0060.00722.52
8.4.70.0090.00818.41
8.4.60.0150.00618.49
8.4.50.0100.00918.90
8.4.40.0100.01019.82
8.4.30.0130.00317.58
8.4.20.0040.00718.57
8.4.10.0160.00317.85
8.3.280.0100.01018.37
8.3.270.0110.00816.56
8.3.260.0090.01116.41
8.3.250.0100.00918.83
8.3.240.0070.00317.11
8.3.230.0070.01216.73
8.3.220.0110.00818.76
8.3.210.0100.00518.49
8.3.200.0070.00216.57
8.3.190.0100.00517.16
8.3.180.0110.00716.59
8.3.170.0100.00318.88
8.3.160.0100.00018.34
8.3.150.0110.00716.71
8.3.140.0080.00018.90
8.3.130.0050.00518.43
8.3.120.0060.00918.82
8.3.110.0100.00720.94
8.3.100.0080.00024.06
8.3.90.0000.00826.77
8.3.80.0030.00616.50
8.3.70.0070.01116.58
8.3.60.0100.00618.43
8.3.50.0130.00718.32
8.3.40.0120.00318.76
8.3.30.0110.00718.78
8.3.20.0040.00421.72
8.3.10.0080.00023.61
8.3.00.0030.00623.64
8.2.290.0130.00520.40
8.2.280.0100.00718.47
8.2.270.0100.00718.96
8.2.260.0060.00316.73
8.2.250.0080.00016.71
8.2.240.0000.00818.88
8.2.230.0090.00022.58
8.2.220.0030.00737.54
8.2.210.0040.01526.77
8.2.200.0030.00616.63
8.2.190.0170.00316.63
8.2.180.0100.01018.41
8.2.170.0040.01122.96
8.2.160.0070.00720.30
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0040.00418.22
8.2.120.0070.00026.35
8.2.110.0030.00620.57
8.2.100.0130.00317.84
8.2.90.0030.00719.26
8.2.80.0030.00517.97
8.2.70.0000.00917.88
8.2.60.0040.00417.93
8.2.50.0040.00418.07
8.2.40.0000.00918.03
8.2.30.0000.00718.06
8.2.20.0040.00417.99
8.2.10.0050.00319.22
8.2.00.0040.00419.34
8.1.330.0130.00522.20
8.1.320.0150.00718.29
8.1.310.0110.00718.30
8.1.300.0090.00018.38
8.1.290.0050.00530.84
8.1.280.0060.01225.92
8.1.270.0040.00421.98
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0170.00023.84
8.1.230.0090.00320.82
8.1.220.0050.00317.74
8.1.210.0030.00518.77
8.1.200.0060.00317.36
8.1.190.0000.00817.22
8.1.180.0030.00618.10
8.1.170.0000.00818.78
8.1.160.0040.00418.76
8.1.150.0040.00418.89
8.1.140.0070.00022.12
8.1.130.0000.00720.00
8.1.120.0040.00417.59
8.1.110.0030.00717.43
8.1.100.0000.00817.55
8.1.90.0000.00717.59
8.1.80.0060.00417.45
8.1.70.0070.00017.54
8.1.60.0000.00917.68
8.1.50.0040.00417.48
8.1.40.0000.00817.48
8.1.30.0030.00617.63
8.1.20.0000.00817.71
8.1.10.0060.00317.59
8.1.00.0000.00717.59
8.0.300.0000.00818.77
8.0.290.0000.00816.88
8.0.280.0070.00018.39
8.0.270.0000.00717.25
8.0.260.0030.00318.39
8.0.250.0030.00517.01
8.0.240.0070.00016.97
8.0.230.0040.00416.96
8.0.220.0000.00817.00
8.0.210.0000.00816.94
8.0.200.0000.00717.06
8.0.190.0040.00417.02
8.0.180.0040.00416.87
8.0.170.0040.00416.95
8.0.160.0070.00017.04
8.0.150.0030.00316.91
8.0.140.0040.00416.84
8.0.130.0030.00313.40
8.0.120.0000.00817.04
8.0.110.0000.00716.81
8.0.100.0050.00216.86
8.0.90.0030.00316.97
8.0.80.0110.00616.92
8.0.70.0040.00416.86
8.0.60.0050.00316.94
8.0.50.0050.00316.96
8.0.30.0070.01217.28
8.0.20.0080.01117.40
8.0.10.0040.00417.04
8.0.00.0110.00817.04
7.4.330.0030.00316.84
7.4.320.0060.00016.75
7.4.300.0000.00616.63
7.4.290.0040.00416.61
7.4.280.0000.00816.63
7.4.270.0070.00016.72
7.4.260.0000.00716.71
7.4.250.0050.00216.66
7.4.240.0040.00416.75
7.4.230.0040.00416.81
7.4.220.0030.00516.62
7.4.210.0070.00916.70
7.4.200.0030.00316.72
7.4.160.0080.01016.68
7.4.140.0060.01317.86
7.4.130.0120.00616.52
7.4.120.0140.01016.60
7.4.110.0110.00716.69
7.4.100.0110.00816.38
7.4.90.0130.00316.59
7.4.80.0130.01019.39
7.4.70.0070.01016.50
7.4.60.0000.01616.57
7.4.50.0030.01016.70
7.4.40.0060.01116.68
7.4.00.0030.01215.11
7.3.330.0030.00313.09
7.3.320.0040.00313.21
7.3.310.0030.00616.34
7.3.300.0030.00316.17
7.3.290.0050.00216.21
7.3.280.0120.00516.22
7.3.260.0090.00916.41
7.3.240.0090.00716.45
7.3.230.0120.00616.62
7.3.210.0090.00916.77
7.3.200.0130.00916.60
7.3.190.0070.01516.30
7.3.180.0130.00316.53
7.3.170.0140.00716.60
7.3.160.0100.01016.54
7.3.10.0070.00716.89
7.3.00.0100.00616.56
7.2.330.0100.00716.59
7.2.320.0120.01216.63
7.2.310.0140.01016.63
7.2.300.0090.00616.35
7.2.290.0060.01016.72
7.2.130.0030.01216.91
7.2.120.0090.00616.92
7.2.110.0050.00816.90
7.2.100.0050.01016.90
7.2.90.0060.00516.99
7.2.80.0100.00416.88
7.2.70.0100.00616.95
7.2.60.0090.00816.92
7.2.50.0050.00916.87
7.2.40.0070.00916.96
7.2.30.0100.00517.05
7.2.20.0070.01016.72
7.2.10.0090.00716.84
7.2.00.0050.01016.92
7.1.250.0090.00315.86
7.0.330.0050.00815.36
5.6.380.0070.00614.46

preferences:
30.5 ms | 403 KiB | 5 Q