3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'id:5918351498722606 sub:001 dlvrd:001 submit date:1410311037 done date:1410311038 stat:DELIVRD err:000 text:New HTTP Test TxtN'; preg_match_all('/(?:^|\s+)([^:]+):([^:]+$|[^\s]+)/', $string, $matches); $output = array_combine($matches[1], $matches[2]); print_r($output);

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.00817.89
8.4.120.0090.01120.67
8.4.110.0090.01020.54
8.4.100.0100.00718.22
8.4.90.0150.00618.73
8.4.80.0050.00419.69
8.4.70.0060.00218.01
8.4.60.0120.00818.70
8.4.50.0060.00417.64
8.4.40.0040.00419.98
8.4.30.0200.00020.48
8.4.20.0100.01020.34
8.4.10.0070.01317.91
8.3.260.0140.00516.66
8.3.250.0090.01018.80
8.3.240.0090.01018.36
8.3.230.0060.00416.52
8.3.220.0040.00617.36
8.3.210.0120.00916.52
8.3.200.0070.00216.71
8.3.190.0070.00917.03
8.3.180.0110.01018.34
8.3.170.0160.00316.75
8.3.160.0130.00716.92
8.3.150.0120.00617.11
8.3.140.0150.00317.08
8.3.130.0090.00616.69
8.3.120.0070.00318.86
8.3.110.0130.00320.94
8.3.100.0030.01324.06
8.3.90.0130.00726.77
8.3.80.0040.00417.97
8.3.70.0100.00716.47
8.3.60.0130.00718.30
8.3.50.0080.00818.19
8.3.40.0040.01118.87
8.3.30.0140.00018.82
8.3.20.0040.00420.85
8.3.10.0040.00423.48
8.3.00.0050.00323.66
8.2.290.0100.00820.60
8.2.280.0120.00518.56
8.2.270.0120.00616.61
8.2.260.0150.00018.88
8.2.250.0040.00418.79
8.2.240.0060.00317.27
8.2.230.0000.00822.58
8.2.220.0060.00337.54
8.2.210.0050.00326.77
8.2.200.0000.01218.79
8.2.190.0040.01120.40
8.2.180.0090.00618.64
8.2.170.0110.00322.96
8.2.160.0090.00622.24
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0040.00421.01
8.2.110.0040.00421.20
8.2.100.0080.00318.09
8.2.90.0040.00418.28
8.2.80.0080.00018.04
8.2.70.0050.00317.80
8.2.60.0000.00818.02
8.2.50.0000.00818.10
8.2.40.0040.00419.29
8.2.30.0040.00419.27
8.2.20.0000.00718.08
8.2.10.0040.00419.19
8.2.00.0040.00419.20
8.1.330.0080.01022.25
8.1.320.0090.01116.41
8.1.310.0100.00718.29
8.1.300.0040.00416.32
8.1.290.0040.00730.84
8.1.280.0060.01225.92
8.1.270.0060.00318.87
8.1.260.0030.00526.35
8.1.250.0000.00828.09
8.1.240.0040.01017.70
8.1.230.0070.00420.84
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0060.00317.22
8.1.190.0050.00317.22
8.1.180.0030.00518.10
8.1.170.0030.00518.59
8.1.160.0040.00418.77
8.1.150.0050.00218.91
8.1.140.0000.00722.13
8.1.130.0030.00519.98
8.1.120.0000.00717.59
8.1.110.0060.00517.57
8.1.100.0000.00817.59
8.1.90.0000.00817.57
8.1.80.0050.00217.58
8.1.70.0020.00517.56
8.1.60.0000.00817.58
8.1.50.0000.00817.54
8.1.40.0080.00017.54
8.1.30.0040.00417.72
8.1.20.0030.00617.73
8.1.10.0030.00517.76
8.1.00.0030.00617.62
8.0.300.0050.00219.70
8.0.290.0000.00716.88
8.0.280.0030.00318.41
8.0.270.0070.00017.15
8.0.260.0000.00618.40
8.0.250.0000.00716.93
8.0.240.0080.00017.10
8.0.230.0000.00817.07
8.0.220.0000.00717.03
8.0.210.0000.00716.94
8.0.200.0000.00717.01
8.0.190.0000.00717.05
8.0.180.0000.00817.06
8.0.170.0030.00616.97
8.0.160.0040.00416.92
8.0.150.0080.00416.94
8.0.140.0030.00516.84
8.0.130.0030.00313.42
8.0.120.0000.00716.84
8.0.110.0050.00217.04
8.0.100.0040.00416.86
8.0.90.0000.00716.91
8.0.80.0120.00616.98
8.0.70.0040.00417.05
8.0.60.0030.00616.88
8.0.50.0000.00716.97
8.0.30.0110.00917.05
8.0.20.0140.00417.26
8.0.10.0000.00717.08
8.0.00.0090.00816.91
7.4.330.0050.00015.55
7.4.320.0030.00316.76
7.4.300.0030.00316.66
7.4.290.0000.00816.55
7.4.280.0030.00716.79
7.4.270.0000.00816.65
7.4.260.0000.00716.55
7.4.250.0040.00416.56
7.4.240.0070.00016.72
7.4.230.0070.00016.66
7.4.220.0000.00816.85
7.4.210.0050.00916.74
7.4.200.0040.00416.66
7.4.160.0120.00516.67
7.4.140.0110.00917.86
7.4.130.0060.01016.66
7.4.120.0100.01316.50
7.4.110.0090.00916.61
7.4.100.0100.01416.84
7.4.90.0140.00316.43
7.4.80.0060.01619.39
7.4.70.0060.01316.63
7.4.60.0070.01016.43
7.4.50.0060.00616.63
7.4.40.0140.00416.78
7.4.00.0030.01415.11
7.3.330.0030.00313.16
7.3.320.0000.00513.15
7.3.310.0050.00216.32
7.3.300.0020.00516.40
7.3.290.0030.00316.41
7.3.280.0060.00916.36
7.3.260.0090.01016.45
7.3.240.0070.01016.51
7.3.230.0160.00616.32
7.3.210.0090.00916.59
7.3.200.0100.00716.55
7.3.190.0070.01616.31
7.3.180.0060.00916.54
7.3.170.0070.01016.39
7.3.160.0060.01016.38
7.3.00.0200.00714.63
7.2.330.0170.00016.59
7.2.320.0040.01916.70
7.2.310.0030.01316.68
7.2.300.0110.00516.61
7.2.290.0150.00616.88
7.2.130.0270.01315.27
7.2.120.1270.00715.32
7.2.110.0310.00815.29
7.2.100.0300.00715.06
7.2.90.0250.00714.96
7.2.80.0200.01014.94
7.2.70.0220.01114.98
7.2.60.0210.01414.94
7.2.50.0310.01014.85
7.2.40.0280.00615.15
7.2.30.0350.00615.40
7.2.20.0340.01215.25
7.2.10.0280.00614.91
7.2.00.0240.00714.90
7.1.250.0270.01014.08
7.0.330.0390.01013.65
5.6.380.0050.00814.46

preferences:
116.56 ms | 403 KiB | 5 Q