3v4l.org

run code in 300+ PHP versions simultaneously
<?php $config = array( 'key' => array( '/text/' => '/main/') ); $dataKey='/chat/'; foreach ($config['key'] as $url => $key) { $quoted = preg_quote($url, '/'); if (null !== $res = preg_replace('/' . $quoted . '/', $key, $dataKey)) { var_dump( $res ); } }

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.0090.00916.61
8.3.50.0070.00822.09
8.3.40.0090.00618.73
8.3.30.0140.00319.26
8.3.20.0040.00420.37
8.3.10.0080.00023.64
8.3.00.0040.00719.38
8.2.180.0140.00318.69
8.2.170.0000.01422.96
8.2.160.0100.00320.37
8.2.150.0040.00424.18
8.2.140.0030.00524.66
8.2.130.0040.00426.16
8.2.120.0050.00222.29
8.2.110.0060.00322.43
8.2.100.0040.00718.03
8.2.90.0000.00819.35
8.2.80.0000.00818.05
8.2.70.0050.00317.75
8.2.60.0060.00318.03
8.2.50.0060.00318.07
8.2.40.0000.00818.30
8.2.30.0050.00318.20
8.2.20.0080.00017.92
8.2.10.0030.00518.13
8.2.00.0000.01117.80
8.1.280.0140.00025.92
8.1.270.0030.00622.21
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0060.00323.97
8.1.230.0070.00419.15
8.1.220.0080.00017.79
8.1.210.0040.00418.77
8.1.200.0060.00317.25
8.1.190.0040.00417.39
8.1.180.0030.00518.10
8.1.170.0090.00318.52
8.1.160.0000.00822.08
8.1.150.0030.00518.74
8.1.140.0000.00717.64
8.1.130.0050.00317.72
8.1.120.0040.00417.52
8.1.110.0030.00517.62
8.1.100.0040.00417.52
8.1.90.0040.00417.60
8.1.80.0070.00017.51
8.1.70.0000.00717.55
8.1.60.0070.00317.75
8.1.50.0040.00417.55
8.1.40.0000.00817.55
8.1.30.0040.00417.71
8.1.20.0050.00317.83
8.1.10.0040.00417.69
8.1.00.0040.00417.65
8.0.300.0000.00718.77
8.0.290.0000.00817.18
8.0.280.0030.00318.46
8.0.270.0070.00017.18
8.0.260.0070.00017.21
8.0.250.0070.00017.09
8.0.240.0040.00417.06
8.0.230.0000.00717.12
8.0.220.0030.00317.04
8.0.210.0040.00417.09
8.0.200.0070.00017.12
8.0.190.0050.00317.08
8.0.180.0080.00016.94
8.0.170.0030.00516.94
8.0.160.0000.00717.04
8.0.150.0060.00617.02
8.0.140.0040.00416.88
8.0.130.0060.00013.48
8.0.120.0030.00516.90
8.0.110.0040.00416.89
8.0.100.0030.00616.90
8.0.90.0000.00816.84
8.0.80.0060.01016.98
8.0.70.0030.00317.15
8.0.60.0040.00416.82
8.0.50.0020.00517.04
8.0.30.0100.00917.25
8.0.20.0090.01017.40
8.0.10.0000.00717.21
8.0.00.0120.00916.93
7.4.330.0000.00615.00
7.4.320.0040.00416.75
7.4.300.0060.00016.78
7.4.290.0050.00316.69
7.4.280.0070.00316.84
7.4.270.0040.00416.76
7.4.260.0000.00716.81
7.4.250.0000.00816.79
7.4.240.0040.00416.71
7.4.230.0070.00016.76
7.4.220.0060.01316.80
7.4.210.0100.00416.73
7.4.200.0030.00316.82
7.4.190.0070.00016.98
7.4.160.0110.01416.79
7.4.150.0090.00917.40
7.4.140.0070.01217.86
7.4.130.0130.00516.82
7.4.120.0080.00916.62
7.4.110.0130.00316.79
7.4.100.0140.00516.57
7.4.90.0120.00616.78
7.4.80.0090.01319.39
7.4.70.0090.00916.72
7.4.60.0070.01016.52
7.4.50.0060.00316.60
7.4.40.0070.01022.77
7.4.30.0030.01316.63
7.4.00.0050.01015.03
7.3.330.0050.00013.21
7.3.320.0050.00013.44
7.3.310.0050.00216.47
7.3.300.0000.00616.42
7.3.290.0080.00816.39
7.3.280.0070.00916.39
7.3.270.0170.00717.40
7.3.260.0090.00916.45
7.3.250.0070.01116.70
7.3.240.0120.00816.69
7.3.230.0000.01716.45
7.3.210.0070.01016.59
7.3.200.0030.01419.39
7.3.190.0030.01716.41
7.3.180.0100.00716.50
7.3.170.0130.00316.57
7.3.160.0090.00616.66
7.3.120.0100.00815.18
7.3.110.0060.01214.90
7.3.100.0080.00815.16
7.3.90.0030.00714.59
7.3.80.0070.01014.96
7.3.70.0070.00914.80
7.3.60.0000.00914.85
7.3.50.0100.00714.71
7.3.40.0030.00614.84
7.3.30.0030.01014.81
7.3.20.0030.01216.60
7.3.10.0030.01316.79
7.3.00.0060.00916.77
7.2.330.0100.00716.77
7.2.320.0100.00716.84
7.2.310.0070.01016.91
7.2.300.0100.00716.83
7.2.290.0140.00616.79
7.2.250.0040.01115.37
7.2.240.0100.00715.13
7.2.230.0060.00915.23
7.2.220.0070.00315.39
7.2.210.0130.00315.10
7.2.200.0140.00015.22
7.2.190.0040.01515.07
7.2.180.0030.01315.30
7.2.170.0000.01115.13
7.2.00.0130.00619.79
7.1.330.0000.01415.86
7.1.320.0000.01416.10
7.1.310.0030.01316.07
7.1.300.0000.01415.99
7.1.290.0040.00715.67
7.1.280.0030.00715.73
7.1.270.0080.00315.91
7.1.260.0000.01415.91
7.1.200.0070.00715.93
7.1.100.0040.00818.20
7.1.70.0030.01317.13
7.1.60.0140.00719.33
7.1.50.0270.00734.61
7.1.00.0070.07322.31
7.0.200.0100.00717.04
7.0.140.0030.07322.18
7.0.100.0200.04320.02
7.0.90.0130.04019.90
7.0.80.0170.07719.86
7.0.70.0100.03719.90
7.0.60.0030.04319.97
7.0.50.0370.07020.34
7.0.40.0200.06319.99
7.0.30.0070.09020.05
7.0.20.0100.07020.05
7.0.10.0070.08020.13
5.6.280.0070.07020.90
5.6.250.0070.05720.72
5.6.240.0130.07720.49
5.6.230.0230.06720.75
5.6.220.0070.08320.62
5.6.210.0030.06320.62
5.6.200.0030.07021.06
5.6.190.0070.08721.05
5.6.180.0030.06720.95
5.6.170.0100.07321.12
5.5.380.0070.07020.42
5.5.370.0200.06020.50
5.5.360.0000.08720.35
5.5.350.0070.07020.37
5.5.340.0070.08720.92
5.5.330.0100.08320.88
5.5.320.0100.07020.91
5.5.310.0100.08020.82

preferences:
45.77 ms | 400 KiB | 5 Q