3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "id:5918351498722606 sub:001 dlvrd:001 submit date:1410311037 done date:1410311038 stat:DELIVRD err:000 text:New HTTP Test TxtN"; $pattern = '/([^:]+):([A-Z]{2,}|\d+|\w+(?: \w+)*)/'; preg_match_all($pattern, $str, $matches); $res = array_combine((array_map("trim", $matches[1])), $matches[2]); print_r($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.4.130.0090.00918.61
8.4.120.0080.01024.13
8.4.110.0100.01022.46
8.4.100.0130.00617.92
8.4.90.0130.00717.85
8.4.80.0080.01318.10
8.4.70.0110.01018.04
8.4.60.0120.00917.89
8.4.50.0130.01017.80
8.4.40.0160.00319.86
8.4.30.0150.00020.48
8.4.20.0210.00020.11
8.4.10.0060.00319.90
8.3.260.0140.00616.50
8.3.250.0130.00518.99
8.3.240.0110.00916.98
8.3.230.0120.00716.41
8.3.220.0130.00616.99
8.3.210.0090.00916.64
8.3.200.0130.00816.46
8.3.190.0050.00416.73
8.3.180.0130.00616.85
8.3.170.0140.00316.69
8.3.160.0120.00618.88
8.3.150.0130.01017.14
8.3.140.0070.01118.78
8.3.130.0090.00918.44
8.3.120.0060.00318.91
8.3.110.0030.00620.94
8.3.100.0150.00018.43
8.3.90.0030.00517.04
8.3.80.0060.00317.97
8.3.70.0120.00318.43
8.3.60.0090.00918.55
8.3.50.0160.00518.29
8.3.40.0090.00618.79
8.3.30.0040.01218.79
8.3.20.0070.00020.95
8.3.10.0040.00423.69
8.3.00.0000.00923.32
8.2.290.0140.00420.53
8.2.280.0110.00318.45
8.2.270.0110.00416.73
8.2.260.0060.00316.67
8.2.250.0160.00316.61
8.2.240.0070.00017.08
8.2.230.0030.00522.58
8.2.220.0110.00024.06
8.2.210.0040.00426.77
8.2.200.0070.00318.79
8.2.190.0150.00016.58
8.2.180.0150.00018.50
8.2.170.0110.00422.96
8.2.160.0090.00622.29
8.2.150.0080.00024.18
8.2.140.0060.00924.66
8.2.130.0040.00426.16
8.2.120.0070.00019.95
8.2.110.0160.00621.30
8.2.100.0090.00317.84
8.2.90.0050.00317.75
8.2.80.0040.00417.97
8.2.70.0000.00817.93
8.2.60.0040.00418.22
8.2.50.0050.00318.10
8.2.40.0040.00419.33
8.2.30.0070.00019.16
8.2.20.0030.00518.10
8.2.10.0000.00719.25
8.2.00.0000.00719.22
8.1.330.0090.00121.75
8.1.320.0120.00816.50
8.1.310.0000.00818.45
8.1.300.0030.01318.45
8.1.290.0090.00018.88
8.1.280.0130.00725.92
8.1.270.0060.00918.87
8.1.260.0080.00026.35
8.1.250.0000.00828.09
8.1.240.0130.00723.92
8.1.230.0070.00420.26
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0030.00617.35
8.1.190.0030.00619.13
8.1.180.0050.00318.10
8.1.170.0000.00818.61
8.1.160.0050.00218.83
8.1.150.0000.00718.91
8.1.140.0050.00222.22
8.1.130.0000.00820.16
8.1.120.0000.00717.46
8.1.110.0040.00417.49
8.1.100.0040.00417.45
8.1.90.0000.00717.51
8.1.80.0040.00417.58
8.1.70.0040.00417.48
8.1.60.0030.00617.68
8.1.50.0030.00517.62
8.1.40.0000.00817.52
8.1.30.0060.00317.66
8.1.20.0000.00817.61
8.1.10.0040.00417.63
8.1.00.0040.00417.69
8.0.300.0000.00719.71
8.0.290.0040.00416.88
8.0.280.0000.00718.36
8.0.270.0000.00718.13
8.0.260.0040.00418.43
8.0.250.0050.00317.09
8.0.240.0040.00417.07
8.0.230.0030.00317.09
8.0.220.0070.00016.93
8.0.210.0020.00516.95
8.0.200.0000.00817.05
8.0.190.0000.00717.10
8.0.180.0000.00817.06
8.0.170.0080.00017.01
8.0.160.0000.00816.96
8.0.150.0050.00216.85
8.0.140.0050.00316.85
8.0.130.0060.00013.36
8.0.120.0000.00816.94
8.0.110.0030.00516.90
8.0.100.0030.00417.03
8.0.90.0050.00216.97
8.0.80.0120.00316.97
8.0.70.0000.00816.81
8.0.60.0070.00017.06
8.0.50.0000.00817.05
8.0.30.0070.01317.33
8.0.20.0160.00917.40
8.0.10.0000.00717.23
8.0.00.0100.01116.85
7.4.330.0000.00515.55
7.4.320.0000.00616.78
7.4.300.0000.00616.71
7.4.290.0000.00716.76
7.4.280.0080.00016.66
7.4.270.0050.00316.78
7.4.260.0100.00016.55
7.4.250.0040.00416.65
7.4.240.0050.00216.78
7.4.230.0000.00816.75
7.4.220.0080.00016.84
7.4.210.0070.00816.84
7.4.200.0040.00416.70
7.4.160.0080.00816.69
7.4.140.0090.01017.86
7.4.130.0190.00316.59
7.4.120.0040.01516.55
7.4.110.0150.00316.81
7.4.100.0080.01516.61
7.4.90.0170.00016.66
7.4.80.0080.01719.39
7.4.70.0090.01116.75
7.4.60.0160.00616.57
7.4.50.0030.01016.84
7.4.40.0060.01216.74
7.4.10.0070.01315.33
7.4.00.0080.00915.07
7.3.330.0020.00213.19
7.3.320.0000.00613.30
7.3.310.0040.00416.29
7.3.300.0000.00716.31
7.3.290.0000.00716.22
7.3.280.0100.00716.31
7.3.260.0110.00816.54
7.3.240.0100.01016.47
7.3.230.0000.01716.75
7.3.210.0040.01416.54
7.3.200.0100.00616.78
7.3.190.0140.01016.49
7.3.180.0160.00616.30
7.3.170.0120.01216.29
7.3.160.0090.01216.41
7.3.130.0140.00414.80
7.3.120.0110.00715.05
7.3.110.0070.01314.48
7.3.100.0070.01114.77
7.3.90.0070.01014.89
7.3.80.0040.00815.03
7.3.70.0070.00714.85
7.3.60.0030.01014.96
7.3.50.0120.00015.02
7.3.40.0070.00714.98
7.3.30.0090.00615.01
7.3.20.0090.00316.89
7.3.10.0060.00616.78
7.3.00.0090.00416.66
7.2.330.0120.01316.63
7.2.320.0080.01216.66
7.2.310.0100.00716.43
7.2.300.0090.01016.77
7.2.290.0110.01116.70
7.2.260.0030.01715.09
7.2.250.0100.01014.99
7.2.240.0070.00715.13
7.2.230.0070.00714.91
7.2.220.0040.01115.07
7.2.210.0040.00814.89
7.2.200.0030.00615.03
7.2.190.0030.01315.25
7.2.180.0060.00315.07
7.2.170.0040.00715.21
7.2.160.0110.00414.95
7.2.150.0030.01017.22
7.2.140.0060.00616.99
7.2.130.0130.00716.98
7.2.120.0110.00816.99
7.2.110.0080.00716.75
7.2.100.0060.01216.91
7.2.90.0050.00816.81
7.2.80.0050.00916.84
7.2.70.0090.00416.99
7.2.60.0110.00316.74
7.2.50.0090.00816.91
7.2.40.0110.00416.93
7.2.30.0100.00316.98
7.2.20.0080.00816.90
7.2.10.0060.00817.10
7.2.00.0080.00616.94
7.1.330.0030.01016.09
7.1.320.0100.00615.98
7.1.310.0060.00615.88
7.1.300.0030.01015.69
7.1.290.0030.00515.74
7.1.280.0070.00715.61
7.1.270.0070.00316.15
7.1.260.0000.01116.03
7.1.250.0070.00715.85
7.1.240.0090.00615.95
7.1.230.0040.00415.71
7.1.220.0060.00315.82
7.1.210.0060.00616.05
7.1.200.0040.00415.90
7.1.190.0000.01615.67
7.1.180.0030.01016.08
7.1.170.0040.00815.83
7.1.160.0050.00516.10
7.1.150.0060.00315.77
7.1.140.0090.00315.97
7.1.130.0080.00816.00
7.1.120.0000.00915.91
7.1.110.0030.01016.07
7.1.100.0000.01216.08
7.1.90.0070.00316.10
7.1.80.0000.00815.93
7.1.70.0030.00916.10
7.1.60.0040.00816.00
7.1.50.0040.00415.71
7.1.40.0090.00616.16
7.1.30.0040.00815.75
7.1.20.0050.00815.97
7.1.10.0000.00816.14
7.1.00.0040.00816.01
7.0.330.0030.01115.62
7.0.320.0100.00315.60
7.0.310.0080.00015.61
7.0.300.0000.01215.29
7.0.290.0060.00615.51
7.0.280.0090.00015.52
7.0.270.0090.00615.46
7.0.260.0090.00615.46
7.0.250.0070.00415.59
7.0.240.0060.00315.25
7.0.230.0000.01115.52
7.0.220.0040.01115.59
7.0.210.0040.00415.69
7.0.200.0040.01115.62
7.0.190.0070.00415.51
7.0.180.0090.00315.55
7.0.170.0040.00415.52
7.0.160.0070.00315.52
7.0.150.0030.01015.64
7.0.140.0060.00615.30
7.0.130.0030.01015.73
7.0.120.0030.00715.70
7.0.110.0030.00915.32
7.0.100.0080.00415.70
7.0.90.0060.00615.34
7.0.80.0040.01115.36
7.0.70.0060.00615.40
7.0.60.0070.00715.34
7.0.50.0050.00515.46
7.0.40.0000.01513.17
7.0.30.0030.00613.76
7.0.20.0040.00813.52
7.0.10.0100.00313.52
7.0.00.0090.00013.58
5.6.400.0050.00514.68
5.6.390.0000.01414.35
5.6.380.0060.00914.42
5.6.370.0060.00614.60
5.6.360.0060.00614.11
5.6.350.0000.01414.02
5.6.340.0030.01014.52
5.6.330.0030.00914.34
5.6.320.0040.01114.41
5.6.310.0150.00313.98
5.6.300.0100.00014.14
5.6.290.0070.00714.23
5.6.280.0040.00714.45
5.6.270.0060.00314.62
5.6.260.0100.00014.44
5.6.250.0030.00514.29
5.6.240.0000.01414.14
5.6.230.0000.01313.95
5.6.220.0000.01414.47
5.6.210.0060.00614.33
5.6.200.0000.00814.26
5.6.190.0080.00414.21
5.6.180.0030.00614.01
5.6.170.0090.00614.18
5.6.160.0040.00714.45
5.6.150.0030.01014.12
5.6.140.0030.01314.23
5.6.130.0030.00614.41
5.6.120.0100.00314.41
5.6.110.0030.01014.22
5.6.100.0130.00014.36
5.6.90.0060.00614.12
5.6.80.0040.00714.40
5.6.70.0060.00314.09
5.6.60.0000.01114.48
5.6.50.0030.00614.04
5.6.40.0090.00314.27
5.6.30.0030.00714.16
5.6.20.0030.00914.06
5.6.10.0100.00314.11
5.6.00.0040.00414.44

preferences:
130.53 ms | 403 KiB | 5 Q