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_all($pat, $str, $match); var_dump($match); $merged = $original; foreach($match as $result) { //$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.70.0120.00316.88
8.3.60.0120.00316.59
8.3.50.0120.00322.10
8.3.40.0110.00418.82
8.3.30.0110.00419.12
8.3.20.0040.00420.34
8.3.10.0040.00423.66
8.3.00.0000.00820.90
8.2.180.0090.00617.00
8.2.170.0120.00322.96
8.2.160.0080.00620.48
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0030.00626.16
8.2.120.0040.00420.93
8.2.110.0060.00622.38
8.2.100.0040.00818.03
8.2.90.0040.00419.40
8.2.80.0000.00817.97
8.2.70.0000.01017.75
8.2.60.0060.00317.80
8.2.50.0110.00018.07
8.2.40.0080.00020.20
8.2.30.0070.00318.22
8.2.20.0040.00417.97
8.2.10.0000.00718.13
8.2.00.0040.00417.90
8.1.280.0100.00625.92
8.1.270.0030.00623.82
8.1.260.0080.00026.35
8.1.250.0050.00328.09
8.1.240.0040.00421.93
8.1.230.0070.00419.16
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0060.00317.60
8.1.190.0080.00017.48
8.1.180.0040.00418.10
8.1.170.0000.00818.71
8.1.160.0040.00422.00
8.1.150.0000.00718.88
8.1.140.0060.00317.59
8.1.130.0050.00217.96
8.1.120.0070.00017.52
8.1.110.0000.00717.68
8.1.100.0040.00417.52
8.1.90.0000.00717.66
8.1.80.0000.00817.61
8.1.70.0040.00417.50
8.1.60.0080.00017.70
8.1.50.0040.00417.71
8.1.40.0000.01017.67
8.1.30.0050.00317.84
8.1.20.0050.00317.80
8.1.10.0050.00317.59
8.1.00.0030.00617.62
8.0.300.0040.00418.77
8.0.290.0040.00417.00
8.0.280.0030.00318.47
8.0.270.0000.00717.30
8.0.260.0030.00317.21
8.0.250.0000.00717.06
8.0.240.0000.00717.15
8.0.230.0000.00817.16
8.0.220.0030.00317.11
8.0.210.0000.00717.04
8.0.200.0000.00717.04
8.0.190.0040.00417.07
8.0.180.0030.00517.15
8.0.170.0030.00617.19
8.0.160.0040.00416.96
8.0.150.0000.00717.11
8.0.140.0000.00716.99
8.0.130.0000.00613.46
8.0.120.0070.00017.14
8.0.110.0030.00617.09
8.0.100.0040.00417.06
8.0.90.0000.00817.23
8.0.80.0150.00617.14
8.0.70.0040.00417.23
8.0.60.0030.00617.04
8.0.50.0000.00717.08
8.0.30.0070.01317.01
8.0.20.0130.00617.40
8.0.10.0040.00417.24
8.0.00.0130.00516.98
7.4.330.0000.00515.14
7.4.320.0030.00316.94
7.4.300.0000.00616.86
7.4.290.0070.00016.71
7.4.280.0040.00416.78
7.4.270.0000.00716.82
7.4.260.0030.00616.87
7.4.250.0000.00816.90
7.4.240.0050.00216.90
7.4.230.0070.00016.79
7.4.220.0090.00916.73
7.4.210.0000.01416.74
7.4.200.0070.00016.91
7.4.160.0030.01316.60
7.4.150.0120.00617.40
7.4.140.0110.00717.86
7.4.130.0110.00816.64
7.4.120.0090.00916.68
7.4.110.0040.01516.69
7.4.100.0140.00716.67
7.4.90.0140.00316.60
7.4.80.0090.01219.39
7.4.70.0110.00516.72
7.4.60.0170.00016.70
7.4.50.0040.00416.97
7.4.40.0080.00816.85
7.4.30.0130.00416.78
7.4.00.0050.01215.22
7.3.330.0060.00013.27
7.3.320.0060.00013.45
7.3.310.0000.00716.42
7.3.300.0030.00316.55
7.3.290.0100.00316.51
7.3.280.0110.00616.57
7.3.270.0050.01517.40
7.3.260.0160.00316.61
7.3.250.0090.00916.52
7.3.240.0120.01016.59
7.3.230.0160.00316.74
7.3.210.0110.00716.66
7.3.200.0130.00719.39
7.3.190.0080.00916.46
7.3.180.0100.00716.64
7.3.170.0080.00816.69
7.3.160.0050.01116.88
7.3.120.0050.01115.29
7.3.110.0140.00315.11
7.3.100.0040.01415.18
7.3.90.0120.00015.05
7.3.80.0030.01314.97
7.3.70.0070.00415.23
7.3.60.0040.00715.21
7.3.50.0030.01315.11
7.3.40.0120.00314.95
7.3.30.0040.01414.98
7.3.20.0160.00017.01
7.3.10.0080.00816.69
7.3.00.0040.01116.57
7.2.330.0110.00716.81
7.2.320.0100.01316.73
7.2.310.0110.01116.80
7.2.300.0160.00316.63
7.2.290.0120.00616.72
7.2.250.0050.01015.36
7.2.240.0080.01215.11
7.2.230.0060.00915.19
7.2.220.0080.00415.28
7.2.210.0000.01915.36
7.2.200.0110.00715.15
7.2.190.0030.01414.96
7.2.180.0070.01015.11
7.2.170.0060.01215.22
7.2.00.0000.01219.70
7.1.330.0040.01116.08
7.1.320.0000.01316.10
7.1.310.0110.00916.00
7.1.300.0070.00316.03
7.1.290.0090.00916.11
7.1.280.0090.00615.99
7.1.270.0110.00316.01
7.1.260.0070.00716.06
7.1.100.0000.00818.52
7.1.70.0070.00017.34
7.1.60.0140.01019.70
7.1.50.0290.00634.93
7.1.00.0100.07022.48
7.0.200.0000.00816.68
7.0.140.0030.07022.21
7.0.60.0100.07319.80
7.0.50.0130.07317.77
7.0.40.0170.07720.29
7.0.30.0300.07320.04
7.0.20.0330.06720.15
7.0.10.0270.07020.15
7.0.00.0100.04320.18
5.6.280.0000.07721.06
5.6.210.0030.08320.54
5.6.200.0030.09018.11
5.6.190.0100.05020.67
5.6.180.3800.03720.27
5.6.170.0230.04720.33
5.6.160.0000.09020.54
5.6.150.0070.05318.16
5.6.140.0030.09018.12
5.6.130.0070.03718.20
5.6.120.0070.05720.95
5.6.110.0100.07721.11
5.6.100.0100.05320.95
5.6.90.0100.06320.99
5.6.80.0030.04320.52
5.6.70.4630.03720.41
5.5.350.0300.06720.49
5.5.340.0030.04017.96
5.5.330.0070.05720.14
5.5.320.3770.03320.34
5.5.310.0330.06720.17
5.5.300.0000.04317.91
5.5.290.0070.08317.91
5.5.280.0100.06020.65
5.5.270.0030.08320.79
5.5.260.0100.08320.67
5.5.250.0030.08320.57
5.5.240.0300.07320.26
5.4.450.0170.05329.93
5.4.440.0270.04329.93
5.4.430.0470.03729.68
5.4.420.0730.04329.10
5.4.410.0130.04728.29
5.4.400.0670.03728.29
5.4.390.0930.03728.29
5.4.380.0200.05018.74
5.4.370.0100.05718.71
5.4.360.0130.05018.63
5.4.350.0100.06318.73
5.4.340.0130.05318.50
5.4.320.0090.03912.45
5.4.310.0070.04212.45
5.4.300.0080.04212.46
5.4.290.0060.04912.45
5.4.280.0130.04512.35
5.4.270.0050.05312.35
5.4.260.0110.05712.35
5.4.250.0120.05212.35
5.4.240.0080.05012.35
5.4.230.0100.05312.34
5.4.220.0080.05312.34
5.4.210.0100.05412.34
5.4.200.0100.05912.34
5.4.190.0090.04412.34
5.4.180.0100.03712.34
5.4.170.0050.04512.35
5.4.160.0110.04112.35
5.4.150.0160.03612.34
5.4.140.0070.03912.03
5.4.130.0130.04212.01
5.4.120.0100.04011.97
5.4.110.0140.04911.97
5.4.100.0060.04911.97
5.4.90.0120.04711.97
5.4.80.0060.05411.96
5.4.70.0130.04511.97
5.4.60.0120.04211.96
5.4.50.0080.04611.96
5.4.40.0090.03911.95
5.4.30.0060.04411.95
5.4.20.0080.04811.95
5.4.10.0110.10111.95
5.4.00.0110.05711.44
5.3.290.0070.05212.80
5.3.280.0130.05112.71
5.3.270.0100.04712.72
5.3.260.0080.04812.72
5.3.250.0090.05512.71
5.3.240.0070.04112.72
5.3.230.0100.04212.71
5.3.220.0080.04312.68
5.3.210.0050.04512.68
5.3.200.0060.04112.68
5.3.190.0110.04012.68
5.3.180.0110.03512.68
5.3.170.0040.04412.67
5.3.160.0080.04512.67
5.3.150.0100.05012.68
5.3.140.0080.05212.66
5.3.130.0050.05712.66
5.3.120.0110.05012.66
5.3.110.0100.05112.66
5.3.100.0120.04512.12
5.3.90.0060.05412.08
5.3.80.0090.04712.07
5.3.70.0040.05212.07
5.3.60.0080.04812.07
5.3.50.0060.05012.00
5.3.40.0110.04512.00
5.3.30.0060.05011.96
5.3.20.0080.05011.73
5.3.10.0100.05011.70
5.3.00.0120.05011.69
5.2.170.0070.0439.20
5.2.160.0070.0429.19
5.2.150.0060.0389.19
5.2.140.0130.0359.19
5.2.130.0050.0339.15
5.2.120.0100.0269.15
5.2.110.0040.0339.15
5.2.100.0050.0299.15
5.2.90.0050.0299.15
5.2.80.0060.0299.15
5.2.70.0060.0309.14
5.2.60.0050.0379.10
5.2.50.0080.0389.07
5.2.40.0080.0309.05
5.2.30.0040.0389.03
5.2.20.0060.0339.02
5.2.10.0060.0368.92
5.2.00.0090.0388.78
5.1.60.0030.0358.07
5.1.50.0110.0288.06
5.1.40.0050.0338.04
5.1.30.0040.0298.39
5.1.20.0120.0318.41
5.1.10.0080.0358.14
5.1.00.0050.0398.15
5.0.50.0060.0256.62
5.0.40.0040.0306.48
5.0.30.0130.0916.29
5.0.20.0070.0256.26
5.0.10.0110.0386.24
5.0.00.0080.0376.23
4.4.90.0060.0204.78
4.4.80.0050.0384.75
4.4.70.0090.0364.76
4.4.60.0170.0284.76
4.4.50.0050.0244.77
4.4.40.0050.0314.71
4.4.30.0050.0314.76
4.4.20.0040.0194.85
4.4.10.0020.0194.85
4.4.00.0090.0304.76
4.3.110.0030.0194.67
4.3.100.0050.0174.67
4.3.90.0040.0164.63
4.3.80.0070.0244.59
4.3.70.0020.0194.63
4.3.60.0040.0224.63
4.3.50.0040.0254.63
4.3.40.0080.0364.54
4.3.30.0060.0213.29
4.3.20.0070.0193.26
4.3.10.0020.0233.21
4.3.00.0170.01328.29

preferences:
46.35 ms | 401 KiB | 5 Q