3v4l.org

run code in 300+ PHP versions simultaneously
<?php $config = array( 'key' => array( '/' => '/main/') ); $dataKey='/'; 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.0040.01516.75
8.3.50.0120.00522.04
8.3.40.0040.01119.04
8.3.30.0040.01119.07
8.3.20.0040.00420.16
8.3.10.0050.00323.48
8.3.00.0040.00420.80
8.2.180.0120.00316.75
8.2.170.0110.00422.96
8.2.160.0100.00320.53
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0030.00526.16
8.2.120.0040.00422.25
8.2.110.0060.00322.24
8.2.100.0090.00318.03
8.2.90.0050.00319.25
8.2.80.0060.00317.97
8.2.70.0040.00417.60
8.2.60.0030.00618.03
8.2.50.0040.00418.07
8.2.40.0040.00418.16
8.2.30.0000.00718.07
8.2.20.0070.00317.93
8.2.10.0000.00917.80
8.2.00.0000.00717.93
8.1.280.0060.00925.92
8.1.270.0000.00822.05
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0080.00023.96
8.1.230.0070.00419.11
8.1.220.0040.00417.79
8.1.210.0050.00318.77
8.1.200.0040.00417.21
8.1.190.0030.00617.40
8.1.180.0040.00418.10
8.1.170.0030.00618.78
8.1.160.0040.00421.96
8.1.150.0040.00418.80
8.1.140.0050.00317.59
8.1.130.0070.00017.83
8.1.120.0000.00717.66
8.1.110.0080.00017.60
8.1.100.0000.00717.59
8.1.90.0070.00017.53
8.1.80.0000.00717.51
8.1.70.0000.00717.46
8.1.60.0000.00817.77
8.1.50.0040.00417.58
8.1.40.0000.00817.57
8.1.30.0050.00317.70
8.1.20.0030.00517.80
8.1.10.0000.00917.68
8.1.00.0030.00617.62
8.0.300.0070.00018.77
8.0.290.0030.00317.18
8.0.280.0000.00718.33
8.0.270.0070.00017.19
8.0.260.0030.00317.04
8.0.250.0000.00717.09
8.0.240.0000.00717.08
8.0.230.0060.00317.12
8.0.220.0000.00716.98
8.0.210.0050.00216.92
8.0.200.0000.00717.01
8.0.190.0030.00617.11
8.0.180.0040.00417.11
8.0.170.0000.00817.05
8.0.160.0030.00416.97
8.0.150.0000.00716.91
8.0.140.0040.00417.04
8.0.130.0000.00513.43
8.0.120.0030.00616.94
8.0.110.0000.00716.95
8.0.100.0040.00417.10
8.0.90.0000.00716.88
8.0.80.0100.00617.07
8.0.70.0000.00816.89
8.0.60.0080.00016.83
8.0.50.0000.00816.98
8.0.30.0090.01017.31
8.0.20.0110.00817.40
8.0.10.0050.00316.95
8.0.00.0140.00516.77
7.4.330.0050.00015.17
7.4.320.0020.00516.71
7.4.300.0080.00016.65
7.4.290.0080.00016.75
7.4.280.0080.00216.84
7.4.270.0050.00316.70
7.4.260.0040.00416.59
7.4.250.0070.00016.67
7.4.240.0020.00516.74
7.4.230.0040.00416.89
7.4.220.0190.00016.74
7.4.210.0060.01016.79
7.4.200.0040.00416.60
7.4.190.0070.00016.93
7.4.160.0080.00816.63
7.4.150.0060.01217.40
7.4.140.0110.00617.86
7.4.130.0120.00516.62
7.4.120.0060.01116.75
7.4.110.0060.01116.60
7.4.100.0090.00816.87
7.4.90.0100.00716.70
7.4.80.0060.01319.39
7.4.70.0030.01316.65
7.4.60.0100.01016.67
7.4.50.0030.00616.67
7.4.40.0040.01422.77
7.4.30.0060.00916.58
7.4.00.0060.00915.25
7.3.330.0000.00513.35
7.3.320.0030.00313.31
7.3.310.0030.00316.54
7.3.300.0000.00716.49
7.3.290.0110.00416.46
7.3.280.0070.01116.39
7.3.270.0130.00617.40
7.3.260.0080.00816.61
7.3.250.0120.00416.49
7.3.240.0000.01616.60
7.3.230.0030.01516.40
7.3.210.0140.00416.58
7.3.200.0090.00919.39
7.3.190.0070.01016.52
7.3.180.0090.00616.74
7.3.170.0000.01616.52
7.3.160.0090.00616.68
7.3.120.0040.01115.07
7.3.110.0080.00814.89
7.3.100.0120.00315.04
7.3.90.0000.01515.09
7.3.80.0030.00715.15
7.3.70.0070.00715.07
7.3.60.0110.00014.85
7.3.50.0050.00515.14
7.3.40.0060.00914.94
7.3.30.0030.00715.00
7.3.20.0110.00416.84
7.3.10.0070.01016.94
7.3.00.0030.00716.59
7.2.330.0090.00916.77
7.2.320.0060.01116.66
7.2.310.0100.00716.68
7.2.300.0030.01416.81
7.2.290.0120.00416.90
7.2.240.0040.00815.37
7.2.230.0040.01215.26
7.2.220.0060.00615.45
7.2.210.0120.00315.29
7.2.200.0030.00915.52
7.2.190.0090.00615.21
7.2.180.0060.00915.23
7.2.170.0080.00815.25
7.2.160.0100.00715.41
7.2.150.0060.01216.99
7.2.140.0070.00316.90
7.2.130.0090.00617.21
7.2.120.0000.01017.23
7.2.110.0070.01117.09
7.2.100.0090.00617.21
7.2.90.0100.00616.97
7.2.80.0120.00317.27
7.2.70.0060.01017.35
7.2.60.0050.00716.99
7.2.50.0080.00416.98
7.2.40.0100.00617.27
7.2.30.0060.00617.18
7.2.20.0070.01016.87
7.2.10.0040.01117.16
7.2.00.0060.00818.19
7.1.330.0030.01016.07
7.1.320.0030.00715.95
7.1.310.0110.00416.19
7.1.300.0070.00715.80
7.1.290.0000.01116.00
7.1.280.0070.01016.05
7.1.270.0030.00715.89
7.1.260.0070.01016.13
7.1.250.0000.01716.07
7.1.200.0070.00715.96
7.1.100.0030.01017.92
7.1.70.0000.01117.43
7.1.60.0070.01319.29
7.1.50.0060.00617.30
7.1.00.0070.07022.43
7.0.200.0030.00517.08
7.0.140.0030.07322.11
7.0.100.0100.08319.96
7.0.90.0230.06019.88
7.0.80.0200.08019.89
7.0.70.0200.06019.95
7.0.60.0030.04719.96
7.0.50.0200.07020.39
7.0.40.0170.08020.17
7.0.30.0170.06720.10
7.0.20.0130.06720.09
7.0.10.0030.09020.09
7.0.00.0070.07320.11
5.6.280.0030.07320.89
5.6.250.0100.09020.50
5.6.240.0070.08020.59
5.6.230.0170.08020.50
5.6.220.0100.04320.55
5.6.210.0100.05020.68
5.6.200.0130.07321.03
5.6.190.0000.06021.03
5.6.180.0030.08721.13
5.6.170.0070.08021.01
5.6.160.0100.08020.94
5.6.150.0170.07021.16
5.6.140.0030.07721.11
5.6.130.0030.08021.10
5.6.120.0100.05321.01
5.6.110.0100.08320.95
5.6.100.0030.08721.00
5.6.90.0100.05721.00
5.6.80.0000.05320.46
5.6.70.0070.04720.51
5.6.60.0030.04720.41
5.6.50.0100.03720.49
5.6.40.0000.04320.29
5.6.30.0030.04320.38
5.6.20.0030.04320.46
5.6.10.0030.04020.45
5.6.00.0000.04320.29
5.5.380.0000.10320.54
5.5.370.0030.07320.56
5.5.360.0100.07020.34
5.5.350.0070.08020.45
5.5.340.0100.07320.80
5.5.330.0130.07320.64
5.5.320.0100.07320.79
5.5.310.0100.08020.79
5.5.300.0100.08020.83
5.5.290.0100.08320.77
5.5.280.0100.08720.75
5.5.270.0070.06320.78
5.5.260.0100.08020.84
5.5.250.0030.08320.73
5.5.240.0070.05020.30
5.5.230.0070.04320.22
5.5.220.0000.04320.23
5.5.210.0000.04320.30
5.5.200.0000.04320.27
5.5.190.0100.03320.17
5.5.180.0030.04020.23
5.5.160.0030.04020.23
5.5.150.0030.04720.27
5.5.140.0030.04320.10
5.5.130.0070.03320.20
5.5.120.0030.04720.20
5.5.110.0030.05020.27
5.5.100.0070.03319.98
5.5.90.0070.06320.06
5.5.80.0070.04720.10
5.5.70.0070.04020.00
5.5.60.0030.03720.06
5.5.50.0130.03019.99
5.5.40.0070.03320.13
5.5.30.0100.03720.09
5.5.20.0030.05020.09
5.5.10.0070.03720.05
5.5.00.0030.05020.07
5.4.450.0030.05019.39
5.4.440.0070.07319.37
5.4.430.0070.07019.46
5.4.420.0100.04319.55
5.4.410.0070.04019.34
5.4.400.0070.04319.00
5.4.390.0030.04018.91
5.4.380.0070.03319.23
5.4.370.0030.04319.11
5.4.360.0130.04719.16
5.4.350.0000.03719.14
5.4.340.0000.04019.12
5.4.320.0070.03318.98
5.4.310.0070.06318.98
5.4.300.0100.04318.78
5.4.290.0070.03719.23
5.4.280.0100.05718.81
5.4.270.0030.04019.06
5.4.260.0000.03719.04
5.4.250.0000.05318.77
5.4.240.0100.03319.02
5.4.230.0030.03718.87
5.4.220.0100.03719.14
5.4.210.0000.04019.06
5.4.200.0030.08318.97
5.4.190.0170.05319.08
5.4.180.0030.04719.11
5.4.170.0070.03018.98
5.4.160.0000.04019.15
5.4.150.0000.04319.05
5.4.140.0030.03716.27
5.4.130.0030.03716.41
5.4.120.0070.03016.27
5.4.110.0000.04716.42
5.4.100.0030.03716.38
5.4.90.0000.04016.31
5.4.80.0030.03716.25
5.4.70.0070.03016.22
5.4.60.0070.05316.41
5.4.50.0070.05716.31
5.4.40.0100.03316.28
5.4.30.0100.07016.40
5.4.20.0030.06316.18
5.4.10.0030.07716.21
5.4.00.0070.07315.80
5.3.290.0100.07314.65
5.3.280.0030.04014.41
5.3.270.0000.03714.44
5.3.260.0070.03314.60
5.3.250.0030.03314.58
5.3.240.0000.03714.61
5.3.230.0030.03714.55
5.3.220.0000.04014.55
5.3.210.0030.04314.55
5.3.200.0000.03714.56
5.3.190.0030.03714.48
5.3.180.0070.03014.52
5.3.170.0000.04714.52
5.3.160.0070.03314.53
5.3.150.0100.07314.42
5.3.140.0000.05714.38
5.3.130.0070.07314.53
5.3.120.0030.03714.48
5.3.110.0030.07314.50
5.3.100.0070.06314.04
5.3.90.0070.04314.02
5.3.80.0070.04713.88
5.3.70.0030.07013.96
5.3.60.0100.07013.75
5.3.50.0070.06013.90
5.3.40.0030.07013.88
5.3.30.0070.07013.83
5.3.20.0030.04713.67
5.3.10.0100.04713.60
5.3.00.0030.06313.50
5.2.170.0000.05312.59
5.2.160.0130.05312.59
5.2.150.0070.06012.59
5.2.140.0030.06312.59
5.2.130.0100.04712.59
5.2.120.0100.05712.59
5.2.110.0100.05712.59
5.2.100.0100.05712.59
5.2.90.0070.05312.59
5.2.80.0070.04012.59
5.2.70.0000.07012.59
5.2.60.0030.06012.59
5.2.50.0030.06712.59
5.2.40.0100.05712.59
5.2.30.0070.05312.59
5.2.20.0100.05712.59
5.2.10.0100.06012.59
5.2.00.0030.06012.59
5.1.60.0030.05012.59
5.1.50.0070.05012.59
5.1.40.0000.05712.59
5.1.30.0030.05012.59
5.1.20.0070.05012.59
5.1.10.0030.04712.59
5.1.00.0070.05012.59
5.0.50.0030.02312.59
5.0.40.0030.04312.59
5.0.30.0000.07012.59
5.0.20.0030.04312.59
5.0.10.0030.04312.59
5.0.00.0000.04712.59
4.4.90.0000.04312.59
4.4.80.0030.02012.59
4.4.70.0070.03012.59
4.4.60.0030.03312.59
4.4.50.0000.03712.59
4.4.40.0070.05012.59
4.4.30.0030.03312.59
4.4.20.0070.03312.59
4.4.10.0000.04012.59
4.4.00.0000.05712.59
4.3.110.0000.03712.59
4.3.100.0000.03312.59
4.3.90.0030.03312.59
4.3.80.0100.04712.59
4.3.70.0030.01712.59
4.3.60.0030.03012.59
4.3.50.0030.03312.59
4.3.40.0000.04012.59
4.3.30.0000.03312.59
4.3.20.0000.03312.59
4.3.10.0000.03712.59
4.3.00.0000.03012.59

preferences:
38.58 ms | 401 KiB | 5 Q