3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data='intervals [1]: xmin = 0 xmax = 13.139997023062838 text = "" intervals [2]: xmin = 13.139997023062838 xmax = 14.763036269953904 text = "Cities are like siblings in a large polygamous family." intervals [3]: xmin = 14.763036269953904 xmax = 17.01 text = ""'; $pat='/xmin = (\S+)\s+xmax = (\S+)\s+text = "([^"]*)/'; if(preg_match_all($pat,$data,$m,PREG_SET_ORDER)){ $assoc_multidim=array_map(function($a){return array_combine(['xmin','xmax','text'],array_slice($a,1));},$m); var_export($assoc_multidim); }else{ echo "substring extraction failed"; }

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.0130.00718.79
8.4.120.0080.00118.06
8.4.110.0090.01120.67
8.4.100.0070.00218.54
8.4.90.0070.00520.52
8.4.80.0060.00318.67
8.4.70.0110.00917.82
8.4.60.0100.01018.93
8.4.50.0040.00620.89
8.4.40.0040.00420.70
8.4.30.0100.00617.83
8.4.20.0130.01019.71
8.4.10.0060.00319.50
8.3.260.0120.00716.87
8.3.250.0160.00416.63
8.3.240.0070.00516.64
8.3.230.0070.00716.98
8.3.220.0060.01218.74
8.3.210.0090.00918.47
8.3.200.0020.00716.91
8.3.190.0100.00516.99
8.3.180.0130.00616.86
8.3.170.0150.00419.11
8.3.160.0110.00018.65
8.3.150.0070.01117.29
8.3.140.0040.00417.27
8.3.130.0080.00018.55
8.3.120.0090.00020.65
8.3.110.0040.01120.94
8.3.100.0080.00024.06
8.3.90.0100.01026.77
8.3.80.0130.00016.73
8.3.70.0070.00717.00
8.3.60.0160.00316.75
8.3.50.0080.00817.41
8.3.40.0060.00918.83
8.3.30.0090.00618.80
8.3.20.0040.00420.22
8.3.10.0040.00421.65
8.3.00.0060.00323.52
8.2.290.0040.00420.57
8.2.280.0110.00618.74
8.2.270.0060.01317.14
8.2.260.0090.00617.13
8.2.250.0030.00518.50
8.2.240.0040.00417.29
8.2.230.0000.01022.58
8.2.220.0060.00337.54
8.2.210.0110.00726.77
8.2.200.0030.00916.63
8.2.190.0090.00617.00
8.2.180.0070.01125.92
8.2.170.0070.00718.95
8.2.160.0000.01322.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0050.00321.18
8.2.120.0080.00026.35
8.2.110.0120.00019.30
8.2.100.0110.00017.84
8.2.90.0000.00818.03
8.2.80.0000.00817.97
8.2.70.0050.00317.93
8.2.60.0040.00418.05
8.2.50.0040.00418.22
8.2.40.0030.00520.59
8.2.30.0060.00319.20
8.2.20.0000.00718.25
8.2.10.0070.00018.05
8.2.00.0000.00718.22
8.1.330.0130.00622.16
8.1.320.0110.00916.23
8.1.310.0120.00316.89
8.1.300.0030.00620.05
8.1.290.0060.00330.84
8.1.280.0070.01125.92
8.1.270.0030.00522.22
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0030.00623.88
8.1.230.0030.00722.70
8.1.220.0000.01017.79
8.1.210.0000.00818.77
8.1.200.0060.00317.72
8.1.190.0000.00817.61
8.1.180.0050.00318.10
8.1.170.0000.00818.76
8.1.160.0040.00418.88
8.1.150.0000.00718.89
8.1.140.0000.00719.05
8.1.130.0000.00818.85
8.1.120.0080.00317.46
8.1.110.0050.00317.66
8.1.100.0070.00017.62
8.1.90.0000.00717.52
8.1.80.0030.00717.65
8.1.70.0070.00017.62
8.1.60.0000.00817.69
8.1.50.0000.00817.64
8.1.40.0050.00217.60
8.1.30.0000.00817.75
8.1.20.0000.00917.80
8.1.10.0040.00417.59
8.1.00.0030.00517.66
8.0.300.0040.00419.90
8.0.290.0030.00616.63
8.0.280.0000.00718.44
8.0.270.0000.00716.86
8.0.260.0000.00716.96
8.0.250.0000.00716.96
8.0.240.0000.00717.05
8.0.230.0050.00516.99
8.0.220.0070.00416.98
8.0.210.0050.00217.05
8.0.200.0060.00017.13
8.0.190.0000.00917.22
8.0.180.0050.00217.15
8.0.170.0040.00417.00
8.0.160.0000.00817.13
8.0.150.0030.00717.04
8.0.140.0040.00417.02
8.0.130.0030.00513.48
8.0.120.0080.00017.05
8.0.110.0040.00417.12
8.0.100.0050.00216.88
8.0.90.0000.00716.95
8.0.80.0130.00317.14
8.0.70.0000.00716.96
8.0.60.0030.00516.96
8.0.50.0000.00716.97
8.0.30.0110.00917.23
8.0.20.0140.00517.44
8.0.10.0000.00717.03
8.0.00.0110.00717.16
7.4.330.0000.00715.55
7.4.320.0030.00316.69
7.4.300.0030.00316.77
7.4.290.0050.00216.74
7.4.280.0000.00716.84
7.4.270.0030.00316.68
7.4.260.0040.00416.70
7.4.250.0080.00016.82
7.4.240.0000.00716.67
7.4.230.0030.00316.75
7.4.220.0030.01516.78
7.4.210.0070.01316.89
7.4.200.0000.00716.65
7.4.160.0120.00516.74
7.4.150.0080.01317.40
7.4.140.0120.00717.86
7.4.130.0120.00616.72
7.4.120.0090.01116.75
7.4.110.0130.00316.71
7.4.100.0030.01516.84
7.4.90.0120.00916.87
7.4.80.0100.01019.39
7.4.70.0200.00616.55
7.4.60.0090.00616.71
7.4.50.0080.00316.59
7.4.40.0030.01516.65
7.4.30.0090.01216.70
7.4.00.0090.00915.11
7.3.330.0030.00313.41
7.3.320.0030.00313.41
7.3.310.0030.00516.29
7.3.300.0030.00316.43
7.3.290.0110.00716.39
7.3.280.0100.00816.43
7.3.270.0070.01017.40
7.3.260.0060.01316.45
7.3.250.0120.00616.44
7.3.240.0090.01116.49
7.3.230.0120.00416.84
7.3.210.0030.02016.41
7.3.200.0030.01316.72
7.3.190.0060.01116.38
7.3.180.0090.00616.44
7.3.170.0100.00616.63
7.3.160.0060.01216.67
7.3.120.0060.00914.92
7.3.110.0100.01014.52
7.3.100.0030.01214.93
7.3.90.0030.00915.03
7.3.80.0040.00915.23
7.3.70.0070.00415.02
7.3.60.0070.00715.07
7.3.50.0150.00015.02
7.3.40.0030.00615.00
7.3.30.0040.01414.96
7.3.20.0090.00616.94
7.3.10.0090.00616.49
7.3.00.0030.01016.77
7.2.330.0060.01316.67
7.2.320.0090.00916.87
7.2.310.0130.00316.79
7.2.300.0070.01016.71
7.2.290.0030.01516.84
7.2.250.0070.01315.16
7.2.240.0070.01015.00
7.2.230.0070.00715.25
7.2.220.0070.00915.40
7.2.210.0030.01015.13
7.2.200.0060.00915.39
7.2.190.0000.01415.25
7.2.180.0100.00715.14
7.2.170.0040.01215.18
7.2.60.0070.00717.19
7.2.00.0150.00819.48
7.1.330.0040.01215.77
7.1.320.0000.01716.07
7.1.310.0060.00315.77
7.1.300.0080.00815.94
7.1.290.0090.00315.96
7.1.280.0060.01215.89
7.1.270.0090.00616.04
7.1.260.0000.01515.80
7.1.200.0030.01015.64
7.1.120.0060.01119.05
7.1.110.0100.01318.02
7.1.100.0070.01418.33
7.1.90.0040.01218.36
7.1.80.0000.01518.45
7.1.70.0090.00617.46
7.1.60.0200.01035.17
7.1.50.0160.01334.84
7.1.40.0180.01134.58
7.1.30.0220.01334.36
7.1.20.0230.00734.64
7.1.10.0030.01216.64
7.1.00.0050.00916.88

preferences:
35.85 ms | 403 KiB | 5 Q