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 . "<br />"; //$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.0070.01116.75
8.3.50.0070.01122.12
8.3.40.0190.00318.95
8.3.30.0140.00319.19
8.3.20.0040.00420.33
8.3.10.0080.00023.61
8.3.00.0090.00020.79
8.2.180.0060.00916.32
8.2.170.0150.00322.96
8.2.160.0050.00820.43
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0070.00026.16
8.2.120.0040.00420.73
8.2.110.0130.00719.21
8.2.100.0060.00618.09
8.2.90.0050.00317.91
8.2.80.0060.00317.97
8.2.70.0090.00017.63
8.2.60.0030.00617.93
8.2.50.0070.00318.07
8.2.40.0000.00920.14
8.2.30.0040.00418.33
8.2.20.0030.00517.98
8.2.10.0040.00418.10
8.2.00.0000.00718.09
8.1.280.0140.01025.92
8.1.270.0000.00823.75
8.1.260.0100.01026.35
8.1.250.0080.00028.09
8.1.240.0000.01021.97
8.1.230.0080.00320.91
8.1.220.0030.00517.79
8.1.210.0000.00819.04
8.1.200.0080.00317.60
8.1.190.0060.00317.47
8.1.180.0030.00518.10
8.1.170.0050.00318.83
8.1.160.0050.00322.05
8.1.150.0070.00018.86
8.1.140.0040.00417.66
8.1.130.0020.00517.93
8.1.120.0030.00317.56
8.1.110.0000.00717.60
8.1.100.0000.00717.66
8.1.90.0000.00717.62
8.1.80.0000.00717.67
8.1.70.0000.00717.48
8.1.60.0040.00417.73
8.1.50.0090.00017.58
8.1.40.0080.00017.69
8.1.30.0060.00317.74
8.1.20.0000.00817.71
8.1.10.0000.00917.63
8.1.00.0060.00317.62
8.0.300.0070.00019.94
8.0.290.0030.00516.75
8.0.280.0000.00718.53
8.0.270.0000.00717.34
8.0.260.0000.00717.25
8.0.250.0070.00017.19
8.0.240.0030.00317.15
8.0.230.0000.00717.16
8.0.220.0000.00717.18
8.0.210.0070.00017.18
8.0.200.0000.00617.14
8.0.190.0000.00817.07
8.0.180.0080.00017.09
8.0.170.0000.00817.02
8.0.160.0070.00017.16
8.0.150.0000.00716.94
8.0.140.0050.00217.02
8.0.130.0050.00013.47
8.0.120.0050.00317.17
8.0.110.0040.00417.18
8.0.100.0000.00817.03
8.0.90.0000.00817.18
8.0.80.0060.01117.22
8.0.70.0070.00017.11
8.0.60.0070.00017.04
8.0.50.0070.00017.11
8.0.30.0100.01317.28
8.0.20.0110.00817.51
8.0.10.0000.00717.18
8.0.00.0070.01117.00
7.4.330.0050.00015.23
7.4.320.0040.00416.86
7.4.300.0000.00716.79
7.4.290.0000.00716.68
7.4.280.0030.00516.77
7.4.270.0050.00316.93
7.4.260.0100.00016.91
7.4.250.0050.00216.78
7.4.240.0070.00016.88
7.4.230.0030.00316.59
7.4.220.0070.01416.93
7.4.210.0040.01116.82
7.4.200.0000.00716.67
7.4.160.0060.00916.81
7.4.150.0070.01117.40
7.4.140.0130.00517.86
7.4.130.0130.00416.67
7.4.120.0080.01216.71
7.4.110.0100.00716.67
7.4.100.0090.00916.77
7.4.90.0150.00316.84
7.4.80.0200.00019.39
7.4.70.0090.01216.68
7.4.60.0090.01416.71
7.4.50.0030.00316.32
7.4.40.0060.00916.66
7.4.30.0000.01516.77
7.4.00.0090.00815.21
7.3.330.0050.00013.30
7.3.320.0000.00713.46
7.3.310.0070.00016.38
7.3.300.0070.00016.45
7.3.290.0040.01116.60
7.3.280.0080.01116.54
7.3.270.0150.00417.40
7.3.260.0130.00716.52
7.3.250.0090.00816.55
7.3.240.0070.01516.79
7.3.230.0100.00716.68
7.3.210.0170.00016.57
7.3.200.0140.00319.39
7.3.190.0100.00716.68
7.3.180.0070.01016.79
7.3.170.0060.01016.62
7.3.160.0060.00916.57
7.3.120.0080.00815.15
7.3.110.0120.00615.15
7.3.100.0000.01515.03
7.3.90.0130.00315.32
7.3.80.0030.01015.04
7.3.70.0100.00315.14
7.3.60.0060.00314.75
7.3.50.0060.00615.25
7.3.40.0000.01614.87
7.3.30.0000.01015.09
7.3.20.0000.01417.00
7.3.10.0040.01116.66
7.3.00.0040.00816.84
7.2.330.0080.00816.63
7.2.320.0120.00916.80
7.2.310.0140.00716.80
7.2.300.0030.01516.61
7.2.290.0090.00916.80
7.2.250.0100.01015.01
7.2.240.0000.02115.39
7.2.230.0030.01315.30
7.2.220.0070.01015.17
7.2.210.0000.01715.23
7.2.200.0110.00315.22
7.2.190.0030.01014.99
7.2.180.0000.01515.38
7.2.170.0070.01115.07
7.2.00.0000.01419.45
7.1.330.0030.01015.77
7.1.320.0090.00615.63
7.1.310.0100.00015.68
7.1.300.0000.01315.73
7.1.290.0110.00316.10
7.1.280.0040.00715.94
7.1.270.0030.01015.64
7.1.260.0040.00815.94
7.1.100.0060.00918.09
7.1.70.0120.00017.44
7.1.60.0070.01819.70
7.1.50.0170.01035.00
7.1.00.0070.07722.38
7.0.200.0000.01016.99
7.0.140.0030.07322.00
7.0.60.0070.07319.99
7.0.50.0000.04317.89
7.0.40.0200.07720.26
7.0.30.0230.04720.23
7.0.20.0270.05320.02
7.0.10.0000.08720.32
7.0.00.0070.05720.11
5.6.280.0030.07320.99
5.6.210.0070.08020.74
5.6.200.0030.09318.18
5.6.190.0030.08720.49
5.6.180.3970.04720.39
5.6.170.0100.04720.50
5.6.160.0030.09720.48
5.6.150.0130.07018.11
5.6.140.0100.07318.17
5.6.130.0070.08318.14
5.6.120.0070.03721.00
5.6.110.0100.08321.09
5.6.100.0070.07020.99
5.6.90.0070.03721.01
5.6.80.0070.08020.48
5.6.70.4470.04320.49
5.5.350.0100.03720.39
5.5.340.0070.07717.93
5.5.330.0130.06020.16
5.5.320.3270.04720.32
5.5.310.0230.05720.50
5.5.300.0070.08317.95
5.5.290.0100.08317.98
5.5.280.0030.04720.88
5.5.270.0170.07720.67
5.5.260.0070.03720.84
5.5.250.0170.08020.61
5.5.240.0270.04320.25
5.4.450.0430.04729.93
5.4.440.0600.04329.93
5.4.430.0270.05029.52
5.4.420.0400.04329.10
5.4.410.0270.04028.29
5.4.400.0170.04328.29
5.4.390.0330.04328.29
5.4.380.0130.05318.57
5.4.370.0170.04718.63
5.4.360.0200.04718.77
5.4.350.0030.06318.68
5.4.340.0200.05018.56
5.4.320.0090.03212.46
5.4.310.0070.03612.45
5.4.300.0060.05112.46
5.4.290.0080.05212.45
5.4.280.0090.04812.35
5.4.270.0090.04812.35
5.4.260.0100.04912.35
5.4.250.0160.06312.35
5.4.240.0130.06312.35
5.4.230.0080.05612.34
5.4.220.0140.10012.34
5.4.210.0130.05312.34
5.4.200.0130.06012.34
5.4.190.0110.05412.34
5.4.180.0120.05512.34
5.4.170.0080.05112.35
5.4.160.0080.04812.35
5.4.150.0070.08212.34
5.4.140.0100.05012.03
5.4.130.0100.04712.01
5.4.120.0090.04611.97
5.4.110.0090.05111.96
5.4.100.0100.05011.96
5.4.90.0110.05211.96
5.4.80.0080.05111.97
5.4.70.0150.04211.96
5.4.60.0110.04711.96
5.4.50.0070.05811.96
5.4.40.0150.04511.95
5.4.30.0060.04511.95
5.4.20.0060.03911.95
5.4.10.0050.03811.95
5.4.00.0080.04011.44
5.3.290.0090.04412.80
5.3.280.0050.04812.71
5.3.270.0130.06912.72
5.3.260.0070.04212.72
5.3.250.0080.03912.72
5.3.240.0040.04512.72
5.3.230.0060.04612.71
5.3.220.0060.04612.68
5.3.210.0070.04312.68
5.3.200.0090.03712.68
5.3.190.0080.04812.68
5.3.180.0090.04412.68
5.3.170.0100.04512.67
5.3.160.0060.04912.67
5.3.150.0090.04212.67
5.3.140.0050.05012.66
5.3.130.0060.05212.66
5.3.120.0070.04512.65
5.3.110.0150.05312.66
5.3.100.0100.04812.12
5.3.90.0070.04212.08
5.3.80.0100.03912.08
5.3.70.0130.04312.08
5.3.60.0090.04512.06
5.3.50.0080.04612.00
5.3.40.0120.04012.00
5.3.30.0130.03711.96
5.3.20.0070.04311.73
5.3.10.0180.06111.70
5.3.00.0210.10811.69
5.2.170.0100.0479.19
5.2.160.0080.0309.19
5.2.150.0050.0419.19
5.2.140.0100.0339.18
5.2.130.0070.0389.14
5.2.120.0070.0339.14
5.2.110.0080.0439.16
5.2.100.0070.0329.15
5.2.90.0090.0399.15
5.2.80.0060.0349.14
5.2.70.0050.0419.14
5.2.60.0060.0419.10
5.2.50.0050.0389.07
5.2.40.0100.0309.05
5.2.30.0050.0359.03
5.2.20.0110.0309.01
5.2.10.0070.0378.92
5.2.00.0070.0348.78
5.1.60.0080.0288.06
5.1.50.0070.0418.06
5.1.40.0070.0298.04
5.1.30.0070.0298.39
5.1.20.0060.0328.41
5.1.10.0070.0328.14
5.1.00.0070.0328.15
5.0.50.0070.0236.61
5.0.40.0040.0276.48
5.0.30.0040.0406.29
5.0.20.0060.0226.26
5.0.10.0060.0206.24
5.0.00.0070.0326.23
4.4.90.0040.0184.78
4.4.80.0030.0174.75
4.4.70.0040.0154.76
4.4.60.0030.0184.76
4.4.50.0020.0204.77
4.4.40.0040.0304.70
4.4.30.0040.0194.75
4.4.20.0040.0174.84
4.4.10.0040.0154.85
4.4.00.0030.0274.76
4.3.110.0020.0194.67
4.3.100.0010.0184.67
4.3.90.0020.0174.64
4.3.80.0040.0264.58
4.3.70.0040.0164.63
4.3.60.0030.0154.63
4.3.50.0040.0214.63
4.3.40.0030.0324.54
4.3.30.0030.0233.29
4.3.20.0040.0183.26
4.3.10.0030.0163.22
4.3.00.0070.01728.29

preferences:
45.88 ms | 404 KiB | 6 Q