3v4l.org

run code in 300+ PHP versions simultaneously
<?php $original = array ( array ("title" => "one", "color" => "blue" ), array ("title" => "two", "color" => "green" ) ); $merged = array(); $str = "000three000red0!000four000white0!000five000black0!"; $pat = "/\d+(\D+)\d+(\D+)\d!/um"; preg_match($pat, $str, $match); $merged = $original; foreach($match as $result) { echo $result . "\n"; //$merged[] = array("title" => $result, "color" => $result); } //print_r($merged);

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.0060.00916.75
8.3.50.0090.01022.09
8.3.40.0150.00318.84
8.3.30.0120.00319.08
8.3.20.0050.00220.18
8.3.10.0050.00323.66
8.3.00.0030.00520.95
8.2.180.0090.00616.63
8.2.170.0120.00422.96
8.2.160.0070.01020.38
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0000.00820.95
8.2.110.0090.00321.24
8.2.100.0060.00617.97
8.2.90.0040.00418.03
8.2.80.0090.00017.97
8.2.70.0000.00917.88
8.2.60.0060.00617.93
8.2.50.0050.00518.07
8.2.40.0080.00018.14
8.2.30.0060.00618.33
8.2.20.0000.00817.88
8.2.10.0040.00418.16
8.2.00.0050.00318.11
8.1.280.0140.00725.92
8.1.270.0060.00322.22
8.1.260.0000.00826.35
8.1.250.0000.00728.09
8.1.240.0060.00322.57
8.1.230.0030.00920.97
8.1.220.0000.00817.74
8.1.210.0050.00318.82
8.1.200.0030.00617.36
8.1.190.0000.00817.38
8.1.180.0080.00018.10
8.1.170.0030.00518.74
8.1.160.0000.00721.98
8.1.150.0070.00018.86
8.1.140.0000.00817.61
8.1.130.0000.00717.99
8.1.120.0000.00717.69
8.1.110.0040.00417.58
8.1.100.0030.00517.51
8.1.90.0000.00717.66
8.1.80.0000.00817.61
8.1.70.0030.00317.54
8.1.60.0000.00817.63
8.1.50.0040.00417.72
8.1.40.0020.00517.69
8.1.30.0090.00017.77
8.1.20.0050.00217.86
8.1.10.0000.00717.70
8.1.00.0000.00717.54
8.0.300.0070.00019.93
8.0.290.0000.00717.00
8.0.280.0070.00018.52
8.0.270.0070.00017.29
8.0.260.0050.00317.36
8.0.250.0000.00717.11
8.0.240.0030.00317.22
8.0.230.0070.00017.13
8.0.220.0070.00017.09
8.0.210.0030.00517.00
8.0.200.0030.00317.09
8.0.190.0040.00417.09
8.0.180.0000.00817.09
8.0.170.0030.00617.03
8.0.160.0040.00417.07
8.0.150.0000.00817.05
8.0.140.0040.00417.13
8.0.130.0000.00513.55
8.0.120.0000.00817.13
8.0.110.0050.00217.09
8.0.100.0000.00817.14
8.0.90.0000.00717.18
8.0.80.0070.01017.22
8.0.70.0000.00817.04
8.0.60.0040.00417.20
8.0.50.0000.00717.21
8.0.30.0120.00717.41
8.0.20.0090.01017.42
8.0.10.0070.00017.11
8.0.00.0070.01117.15
7.4.330.0000.00615.14
7.4.320.0070.00016.79
7.4.300.0070.00016.81
7.4.290.0060.00316.77
7.4.280.0000.00716.82
7.4.270.0070.00016.88
7.4.260.0030.00616.79
7.4.250.0040.00416.66
7.4.240.0030.00416.76
7.4.230.0070.00016.77
7.4.220.0140.00416.78
7.4.210.0040.01216.92
7.4.200.0000.00716.91
7.4.160.0100.00716.50
7.4.150.0120.00617.40
7.4.140.0090.01017.86
7.4.130.0120.00516.88
7.4.120.0110.00716.69
7.4.110.0070.01316.61
7.4.100.0090.00916.69
7.4.90.0060.00916.80
7.4.80.0060.01319.39
7.4.70.0150.00316.60
7.4.60.0060.01216.86
7.4.50.0000.00516.61
7.4.40.0200.00316.80
7.4.30.0000.01616.62
7.4.00.0080.00815.21
7.3.330.0000.00513.38
7.3.320.0000.00613.39
7.3.310.0080.00016.45
7.3.300.0000.00716.60
7.3.290.0000.01416.59
7.3.280.0110.00916.57
7.3.270.0110.00617.40
7.3.260.0090.00916.54
7.3.250.0050.01216.69
7.3.240.0070.01016.77
7.3.230.0130.00516.56
7.3.210.0100.00716.73
7.3.200.0160.00419.39
7.3.190.0090.01116.79
7.3.180.0120.00916.89
7.3.170.0060.01516.75
7.3.160.0030.01316.72
7.3.120.0090.00715.09
7.3.110.0110.00415.15
7.3.100.0040.00814.98
7.3.90.0120.00315.22
7.3.80.0040.01115.27
7.3.70.0030.01015.19
7.3.60.0080.00815.05
7.3.50.0040.01215.09
7.3.40.0070.01015.18
7.3.30.0030.00614.95
7.3.20.0100.00316.79
7.3.10.0190.00516.78
7.3.00.0120.00316.72
7.2.330.0100.00716.85
7.2.320.0090.01316.62
7.2.310.0070.01016.56
7.2.300.0090.00616.71
7.2.290.0110.01116.80
7.2.250.0120.00815.16
7.2.240.0060.01315.24
7.2.230.0000.01515.36
7.2.220.0090.00315.20
7.2.210.0000.01415.36
7.2.200.0030.00715.32
7.2.190.0040.00414.93
7.2.180.0030.00914.93
7.2.170.0040.00915.43
7.2.130.0090.01316.70
7.2.120.0150.01116.99
7.2.110.0160.00616.77
7.2.100.0120.01216.54
7.2.90.0130.01316.98
7.2.80.0080.01716.93
7.2.70.0120.00816.84
7.2.60.0150.00716.62
7.2.50.0090.00916.81
7.2.40.0180.00516.80
7.2.30.0150.00716.60
7.2.20.0190.00616.81
7.2.10.0100.01016.84
7.2.00.0150.00616.75
7.1.330.0140.00015.99
7.1.320.0070.01015.98
7.1.310.0100.00315.91
7.1.300.0100.00015.60
7.1.290.0040.00815.99
7.1.280.0060.00916.08
7.1.270.0060.00615.92
7.1.260.0100.00715.90
7.1.250.0110.01415.74
7.1.70.0000.01517.08
7.1.60.0180.00719.70
7.1.50.0230.01635.04
7.1.00.0130.06722.33
7.0.200.0030.00316.76
7.0.140.0000.07322.12
7.0.60.0130.08019.99
7.0.50.0000.06317.82
7.0.40.0100.07320.42
7.0.30.0170.04320.04
7.0.20.0200.04720.32
7.0.10.0100.08720.34
7.0.00.0200.07020.02
5.6.210.0170.07720.54
5.6.200.0030.05018.16
5.6.190.0030.09020.60
5.6.180.0070.04020.49
5.6.170.0370.06320.44
5.6.160.0030.06020.40
5.6.150.0030.08318.20
5.6.140.0070.04318.11
5.6.130.0100.08018.18
5.6.120.0100.08020.89
5.6.110.0100.07720.97
5.6.100.0130.06021.00
5.6.90.0130.07320.94
5.6.80.0100.03320.53
5.6.70.0070.05720.50
5.5.350.0230.08020.40
5.5.340.0000.04317.91
5.5.330.0070.07320.40
5.5.320.3470.04320.51
5.5.310.0270.06720.12
5.5.300.0030.03717.91
5.5.290.0100.03717.98
5.5.280.0070.04020.90
5.5.270.0070.06020.77
5.5.260.0070.08720.87
5.5.250.0170.06720.79
5.5.240.0270.07020.03
5.4.450.0500.04329.93
5.4.440.0170.05029.93
5.4.430.0370.03329.68
5.4.420.0670.04329.04
5.4.410.0370.04328.29
5.4.400.0370.04028.29
5.4.390.0500.02728.29
5.4.380.0170.05318.62
5.4.370.0030.06318.50
5.4.360.0330.05318.68
5.4.350.0130.05718.50
5.4.340.0270.04718.63
5.4.320.0070.04412.45
5.4.310.0070.04012.45
5.4.300.0080.03512.46
5.4.290.0060.03812.45
5.4.280.0090.04012.35
5.4.270.0090.03612.35
5.4.260.0090.03512.35
5.4.250.0100.03712.35
5.4.240.0060.03712.35
5.4.230.0050.04612.34
5.4.220.0080.03612.34
5.4.210.0090.03312.34
5.4.200.0060.03812.34
5.4.190.0090.03312.34
5.4.180.0070.03512.34
5.4.170.0040.03912.35
5.4.160.0030.04012.34
5.4.150.0070.03512.34
5.4.140.0080.03612.03
5.4.130.0040.03812.02
5.4.120.0080.03511.97
5.4.110.0050.03711.97
5.4.100.0070.03911.96
5.4.90.0070.03811.97
5.4.80.0070.03811.97
5.4.70.0050.03811.96
5.4.60.0080.03411.96
5.4.50.0070.03411.96
5.4.40.0060.03711.95
5.4.30.0060.03611.95
5.4.20.0080.03311.95
5.4.10.0070.03611.95
5.4.00.0100.03311.44
5.3.290.0100.04012.80
5.3.280.0030.04312.71
5.3.270.0050.04412.72
5.3.260.0040.04512.72
5.3.250.0060.03912.72
5.3.240.0070.03912.72
5.3.230.0080.03912.71
5.3.220.0050.04712.68
5.3.210.0100.03912.68
5.3.200.0090.04612.68
5.3.190.0070.04112.68
5.3.180.0060.03912.68
5.3.170.0090.03912.67
5.3.160.0060.04212.68
5.3.150.0150.03712.67
5.3.140.0040.04212.66
5.3.130.0100.03712.66
5.3.120.0040.04312.66
5.3.110.0080.04112.66
5.3.100.0080.03712.11
5.3.90.0050.03912.09
5.3.80.0040.04012.07
5.3.70.0040.04012.08
5.3.60.0110.04412.06
5.3.50.0060.05212.00
5.3.40.0070.04712.00
5.3.30.0080.04611.95
5.3.20.0060.04811.73
5.3.10.0060.04911.70
5.3.00.0120.04411.69
5.2.170.0080.0399.19
5.2.160.0040.0329.19
5.2.150.0070.0379.19
5.2.140.0080.0399.19
5.2.130.0070.0399.14
5.2.120.0090.0279.15
5.2.110.0060.0289.15
5.2.100.0050.0289.15
5.2.90.0070.0329.15
5.2.80.0070.0299.15
5.2.70.0070.0319.14
5.2.60.0040.0349.10
5.2.50.0070.0379.07
5.2.40.0080.0399.05
5.2.30.0060.0439.03
5.2.20.0100.0349.02
5.2.10.0100.0338.92
5.2.00.0070.0378.78
5.1.60.0050.0338.06
5.1.50.0040.0348.06
5.1.40.0050.0338.04
5.1.30.0090.0328.39
5.1.20.0080.0368.41
5.1.10.0070.0318.14
5.1.00.0070.0338.15
5.0.50.0070.0256.61
5.0.40.0010.0306.48
5.0.30.0230.0186.29
5.0.20.0080.0176.26
5.0.10.0030.0206.24
5.0.00.0040.0326.23
4.4.90.0040.0164.78
4.4.80.0020.0184.76
4.4.70.0040.0154.76
4.4.60.0050.0144.76
4.4.50.0020.0164.77
4.4.40.0040.0244.71
4.4.30.0040.0154.76
4.4.20.0040.0154.85
4.4.10.0060.0144.85
4.4.00.0010.0284.76
4.3.110.0050.0134.67
4.3.100.0020.0164.67
4.3.90.0020.0154.64
4.3.80.0040.0244.58
4.3.70.0020.0164.63
4.3.60.0030.0154.63
4.3.50.0060.0164.62
4.3.40.0050.0274.54
4.3.30.0060.0153.29
4.3.20.0020.0163.26
4.3.10.0020.0153.22
4.3.00.0130.01728.29

preferences:
43.75 ms | 401 KiB | 5 Q