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 ); var_dump( $dataKey ); } }

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.0080.01216.88
8.3.50.0070.01017.66
8.3.40.0070.00718.92
8.3.30.0090.00619.09
8.3.20.0000.00819.07
8.3.10.0040.00418.93
8.3.00.0080.00019.51
8.2.180.0180.00425.92
8.2.170.0000.02019.16
8.2.160.0070.00722.96
8.2.150.0060.00324.18
8.2.140.0090.00024.66
8.2.130.0000.00826.16
8.2.120.0000.00719.83
8.2.110.0100.00020.52
8.2.100.0060.00619.76
8.2.90.0040.00418.00
8.2.80.0000.00818.99
8.2.70.0040.00417.88
8.2.60.0000.00718.05
8.2.50.0050.00317.68
8.2.40.0080.00019.60
8.2.30.0050.00517.90
8.2.20.0000.00917.77
8.2.10.0050.00217.76
8.2.00.0070.00017.89
8.1.280.0040.01125.92
8.1.270.0140.00423.99
8.1.260.0000.00926.35
8.1.250.0040.00428.09
8.1.240.0060.00320.61
8.1.230.0040.00823.79
8.1.220.0080.00017.74
8.1.210.0030.00518.77
8.1.200.0030.00617.48
8.1.190.0040.00417.22
8.1.180.0060.00318.10
8.1.170.0080.00017.62
8.1.160.0050.00218.95
8.1.150.0000.00818.89
8.1.140.0080.00317.64
8.1.130.0000.00719.28
8.1.120.0000.00717.48
8.1.110.0030.00617.62
8.1.100.0070.00017.59
8.1.90.0030.00317.61
8.1.80.0040.00417.54
8.1.70.0000.00817.56
8.1.60.0060.00317.79
8.1.50.0000.00817.54
8.1.40.0000.00917.68
8.1.30.0030.00717.68
8.1.20.0100.00017.80
8.1.10.0050.00317.79
8.1.00.0000.00817.72
8.0.300.0070.00418.77
8.0.290.0040.00416.75
8.0.280.0080.00018.59
8.0.270.0000.00817.29
8.0.260.0030.00316.96
8.0.250.0020.00517.09
8.0.240.0080.00417.10
8.0.230.0080.00017.12
8.0.220.0070.00317.05
8.0.210.0000.00717.00
8.0.200.0040.00417.07
8.0.190.0070.00017.00
8.0.180.0000.00917.13
8.0.170.0040.00417.13
8.0.160.0000.00716.93
8.0.150.0000.01016.96
8.0.140.0060.00316.96
8.0.130.0050.00013.50
8.0.120.0030.00616.97
8.0.110.0080.00017.02
8.0.100.0060.00316.91
8.0.90.0000.00816.82
8.0.80.0060.00917.05
8.0.70.0040.00416.92
8.0.60.0040.00417.05
8.0.50.0040.00416.91
8.0.30.0170.00317.16
8.0.20.0050.01617.03
8.0.10.0000.00816.95
8.0.00.0130.00516.89
7.4.330.0060.00013.30
7.4.320.0000.00616.57
7.4.300.0000.00616.64
7.4.290.0000.00716.71
7.4.280.0030.00616.78
7.4.270.0000.00716.68
7.4.260.0000.00613.46
7.4.250.0030.00516.80
7.4.240.0000.00716.68
7.4.230.0040.00416.70
7.4.220.0120.01216.78
7.4.210.0040.01116.75
7.4.200.0000.00716.64
7.4.190.0020.00516.91
7.4.160.0160.00016.80
7.4.150.0030.01516.79
7.4.140.0190.00017.86
7.4.130.0090.00916.44
7.4.120.0170.01016.64
7.4.110.0100.01016.73
7.4.100.0100.00716.64
7.4.90.0090.01316.71
7.4.80.0100.00819.39
7.4.70.0150.00316.88
7.4.60.0030.01216.65
7.4.50.0030.00616.67
7.4.40.0070.01016.67
7.4.30.0170.00016.78
7.4.00.0060.00615.07
7.3.330.0050.00013.42
7.3.320.0000.00613.29
7.3.310.0040.00416.63
7.3.300.0000.00716.50
7.3.290.0070.00916.39
7.3.280.0090.00616.29
7.3.270.0090.00916.34
7.3.260.0060.01216.45
7.3.240.0100.00716.57
7.3.230.0130.01016.56
7.3.210.0040.01516.65
7.3.200.0080.01016.74
7.3.190.0060.00916.65
7.3.180.0120.00416.44
7.3.170.0060.01516.56
7.3.160.0070.01016.65
7.3.120.0120.00414.93
7.2.330.0060.01216.61
7.2.320.0150.00416.70
7.2.310.0100.00616.82
7.2.300.0030.01316.79
7.2.290.0060.01116.80
7.2.00.0030.00619.57
7.1.100.0060.00618.26
7.1.70.0050.00517.39
7.1.60.0060.00817.22
7.1.50.0100.01017.31
7.1.00.0070.03022.58
7.0.200.0030.01416.92
7.0.140.0030.07322.00
7.0.120.0030.06322.12
7.0.60.0030.08019.92
7.0.50.0000.04717.84
7.0.40.0100.08020.26
7.0.30.0200.06720.01
7.0.20.0430.07320.01
7.0.10.0070.07320.11
7.0.00.0070.04020.14
5.6.280.0070.07021.11
5.6.210.0070.08720.46
5.6.200.0100.08018.22
5.6.190.0130.08720.64
5.6.180.0030.04320.41
5.6.170.0200.05020.40
5.6.160.0000.05720.32
5.6.150.0070.08018.18
5.6.140.0030.06318.12
5.6.130.0130.06318.18
5.6.120.0130.05720.97
5.6.110.0070.07020.96
5.6.100.0030.05321.04
5.6.90.0100.04721.11
5.6.80.0070.08020.37
5.5.350.4000.04020.42
5.5.340.0070.08318.02
5.5.330.0030.04320.19
5.5.320.0300.03320.41
5.5.310.0230.05320.27
5.5.300.0030.07017.96
5.5.290.0070.08018.01
5.5.280.0000.08020.65
5.5.270.0100.05720.79
5.5.260.0000.05320.76
5.5.250.0030.05720.79
5.5.240.0100.03020.04
5.4.450.0400.04719.57
5.4.440.0330.07319.54
5.4.430.0270.04019.45
5.4.420.0270.07319.39
5.4.410.0270.04319.41
5.4.400.0300.05019.13
5.4.390.0230.04718.81
5.4.380.0370.07018.93
5.4.370.0370.07019.18
5.4.360.0430.05319.08
5.4.350.0300.04718.92
5.4.340.0400.06718.93
5.4.320.0300.04019.09
5.4.310.0330.06719.24
5.4.300.0370.07019.11
5.4.290.0300.03719.06
5.4.280.0270.05019.13
5.4.270.0400.06319.25
5.4.260.0400.05718.77
5.4.250.0270.04319.13
5.4.240.0370.04319.15
5.4.230.0300.06019.05
5.4.220.0330.05019.23
5.4.210.0230.05318.77
5.4.200.0300.04719.09
5.4.190.0400.06318.88
5.4.180.0370.04718.91
5.4.170.0300.03718.92
5.4.160.0400.06319.05
5.4.150.0400.06319.11
5.4.140.0330.04316.25
5.4.130.0230.05016.42
5.4.120.0330.06316.26
5.4.110.0300.05716.06
5.4.100.0300.07316.39
5.4.90.0370.06316.40
5.4.80.0300.04016.37
5.4.70.0330.04316.38
5.4.60.0230.04016.36
5.4.50.0300.06716.19
5.4.40.0270.05316.36
5.4.30.0270.03316.20
5.4.20.0230.06716.36
5.4.10.0330.05716.36
5.4.00.0230.04015.71
5.3.290.0300.04014.61
5.3.280.0230.05714.59
5.3.270.0230.04014.55
5.3.260.0370.06314.45
5.3.250.0330.03314.55
5.3.240.0230.08314.44
5.3.230.0370.06714.46
5.3.220.0230.03314.47
5.3.210.0330.06014.40
5.3.200.0200.04714.44
5.3.190.0270.03714.41
5.3.180.0300.06014.58
5.3.170.0230.04314.40
5.3.160.0300.07014.66
5.3.150.0300.05314.53
5.3.140.0270.03314.45
5.3.130.0300.06314.49
5.3.120.0270.05014.48
5.3.110.0370.06714.42
5.3.100.0430.06313.98
5.3.90.0330.04714.09
5.3.80.0370.06313.88
5.3.70.0370.04013.88
5.3.60.0430.05713.80
5.3.50.0400.06313.93
5.3.40.0370.05313.72
5.3.30.0300.04713.86
5.3.20.0330.03313.73
5.3.10.0330.03013.59
5.3.00.0330.06013.54
5.2.170.0230.04011.94
5.2.160.0270.03711.94
5.2.150.0330.05711.94
5.2.140.0300.03311.94
5.2.130.0330.04311.94
5.2.120.0230.03711.94
5.2.110.0270.02711.94
5.2.100.0300.04011.94
5.2.90.0200.04011.94
5.2.80.0200.03711.94
5.2.70.0270.05311.94
5.2.60.0230.04711.94
5.2.50.0300.04711.94
5.2.40.0230.05311.94
5.2.30.0170.05011.94
5.2.20.0230.05711.94
5.2.10.0270.03311.94
5.2.00.0200.06311.94
5.1.60.0300.03011.94
5.1.50.0270.05311.94
5.1.40.0130.04711.94
5.1.30.0270.03011.94
5.1.20.0230.03711.94
5.1.10.0230.04711.94
5.1.00.0270.05011.94
5.0.50.0170.02311.94
5.0.40.0200.04011.94
5.0.30.0130.06011.94
5.0.20.0170.04011.94
5.0.10.0200.03011.94
5.0.00.0100.06011.94
4.4.90.0130.01711.94
4.4.80.0100.01711.94
4.4.70.0130.03011.94
4.4.60.0030.03011.94
4.4.50.0130.01311.94
4.4.40.0100.02311.94
4.4.30.0170.02711.94
4.4.20.0100.03711.94
4.4.10.0170.02711.94
4.4.00.0130.04311.94
4.3.110.0100.02711.94
4.3.100.0170.03011.94
4.3.90.0200.02711.94
4.3.80.0170.04311.94
4.3.70.0130.01711.94
4.3.60.0130.02711.94
4.3.50.0170.02311.94
4.3.40.0100.05311.94
4.3.30.0070.03711.94
4.3.20.0070.02011.94
4.3.10.0100.03011.94
4.3.00.0070.01311.94

preferences:
64.49 ms | 401 KiB | 5 Q