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 = (?P<xmin>\S+)\s+xmax = (?P<xmax>\S+)\s+text = "(?P<text>[^"]*)/'; if(preg_match_all($pat,$data,$m,PREG_SET_ORDER)){ $assoc_multidim=array_map(function($a){return array_intersect_key($a,['xmin'=>'','xmax'=>'','text'=>'']);},$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.0110.00918.11
8.4.120.0110.00623.82
8.4.110.0140.00622.62
8.4.100.0150.00718.75
8.4.90.0090.00218.91
8.4.80.0040.00518.72
8.4.70.0100.00618.38
8.4.60.0070.00418.64
8.4.50.0070.00220.66
8.4.40.0040.00420.71
8.4.30.0140.00417.78
8.4.20.0140.00719.74
8.4.10.0130.00319.46
8.3.260.0110.00816.43
8.3.250.0100.00518.86
8.3.240.0140.00516.78
8.3.230.0100.00916.95
8.3.220.0040.00418.83
8.3.210.0050.00318.70
8.3.200.0070.00216.80
8.3.190.0080.00917.30
8.3.180.0100.01017.07
8.3.170.0030.00620.60
8.3.160.0030.01017.14
8.3.150.0070.01417.31
8.3.140.0110.00717.36
8.3.130.0060.00317.03
8.3.120.0090.00619.07
8.3.110.0060.00320.94
8.3.100.0000.00824.06
8.3.90.0060.00326.77
8.3.80.0060.00317.97
8.3.70.0080.00816.89
8.3.60.0070.01018.41
8.3.50.0100.00518.40
8.3.40.0110.00318.93
8.3.30.0070.01418.77
8.3.20.0050.00320.29
8.3.10.0040.00421.90
8.3.00.0060.00323.66
8.2.290.0050.00320.41
8.2.280.0110.00018.63
8.2.270.0040.00417.27
8.2.260.0100.00718.79
8.2.250.0000.00816.68
8.2.240.0060.00317.13
8.2.230.0040.00422.58
8.2.220.0120.00337.54
8.2.210.0080.00826.77
8.2.200.0060.00316.88
8.2.190.0000.01516.75
8.2.180.0040.01218.79
8.2.170.0120.00422.96
8.2.160.0120.00320.43
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0080.00019.61
8.2.110.0050.00521.06
8.2.100.0070.00719.75
8.2.90.0090.00019.23
8.2.80.0000.00817.97
8.2.70.0000.00817.75
8.2.60.0050.00317.93
8.2.50.0030.00618.07
8.2.40.0050.00318.04
8.2.30.0050.00218.05
8.2.20.0050.00318.07
8.2.10.0040.00418.24
8.2.00.0040.00418.28
8.1.330.0090.00922.11
8.1.320.0100.00916.05
8.1.310.0150.00016.70
8.1.300.0060.01318.10
8.1.290.0000.01030.84
8.1.280.0140.00725.92
8.1.270.0000.00922.23
8.1.260.0050.00326.35
8.1.250.0000.00728.09
8.1.240.0060.00321.06
8.1.230.0000.01122.27
8.1.220.0080.00017.74
8.1.210.0060.00318.77
8.1.200.0040.00717.47
8.1.190.0060.00917.13
8.1.180.0000.00818.10
8.1.170.0040.00818.82
8.1.160.0060.00518.95
8.1.150.0030.00518.86
8.1.140.0000.00719.19
8.1.130.0000.00818.88
8.1.120.0070.00017.54
8.1.110.0080.00417.65
8.1.100.0000.00717.56
8.1.90.0040.00417.63
8.1.80.0000.01117.67
8.1.70.0000.00717.51
8.1.60.0040.00417.76
8.1.50.0080.00017.73
8.1.40.0050.00317.60
8.1.30.0000.00817.89
8.1.20.0080.00017.83
8.1.10.0000.00817.70
8.1.00.0000.00817.55
8.0.300.0040.00418.77
8.0.290.0100.00017.00
8.0.280.0000.00718.35
8.0.270.0030.00317.17
8.0.260.0030.00716.84
8.0.250.0060.00317.09
8.0.240.0030.00317.10
8.0.230.0030.00317.09
8.0.220.0040.00717.00
8.0.210.0030.00316.99
8.0.200.0000.00617.11
8.0.190.0000.00717.03
8.0.180.0040.00417.08
8.0.170.0040.00417.09
8.0.160.0070.00017.15
8.0.150.0040.00416.93
8.0.140.0070.00016.98
8.0.130.0060.00013.45
8.0.120.0000.00717.06
8.0.110.0000.00716.98
8.0.100.0040.00416.95
8.0.90.0040.00417.04
8.0.80.0060.01017.14
8.0.70.0000.00817.01
8.0.60.0000.00817.06
8.0.50.0000.00816.90
8.0.30.0090.01017.28
8.0.20.0120.00817.44
8.0.10.0070.00017.07
8.0.00.0120.00616.83
7.4.330.0040.00415.55
7.4.320.0000.00716.64
7.4.300.0060.00016.80
7.4.290.0000.00816.72
7.4.280.0000.00716.72
7.4.270.0080.00316.82
7.4.260.0040.00416.73
7.4.250.0040.00416.65
7.4.240.0030.00516.64
7.4.230.0040.00416.93
7.4.220.0080.01116.85
7.4.210.0100.01016.78
7.4.200.0040.00416.79
7.4.160.0110.00616.72
7.4.150.0110.00817.40
7.4.140.0090.01217.86
7.4.130.0070.01116.66
7.4.120.0090.00916.75
7.4.110.0040.01516.74
7.4.100.0080.00916.82
7.4.90.0110.00716.48
7.4.80.0060.00919.39
7.4.70.0130.00916.53
7.4.60.0130.00316.53
7.4.50.0030.01316.59
7.4.40.0110.00716.77
7.4.30.0060.01416.53
7.4.00.0090.00615.06
7.3.330.0060.00013.26
7.3.320.0000.00613.18
7.3.310.0000.00716.43
7.3.300.0050.00216.41
7.3.290.0070.01316.39
7.3.280.0120.00516.39
7.3.270.0130.01317.40
7.3.260.0130.00616.47
7.3.250.0090.00816.46
7.3.240.0070.00916.46
7.3.230.0120.00616.54
7.3.210.0100.00716.33
7.3.200.0100.00716.68
7.3.190.0060.00916.82
7.3.180.0070.01016.38
7.3.170.0120.00616.39
7.3.160.0130.00316.43
7.2.330.0170.00616.62
7.2.320.0100.01316.79
7.2.310.0030.01316.76
7.2.300.0170.00016.69
7.2.290.0100.00716.76
7.2.60.0070.00717.13
7.2.00.0080.01319.57
7.1.200.0100.00315.79
7.1.120.0120.00618.93
7.1.110.0070.00718.20
7.1.100.0110.00418.56
7.1.90.0030.01018.41
7.1.80.0070.01417.98
7.1.70.0090.01117.46
7.1.60.0210.02235.38
7.1.50.0170.01435.10
7.1.40.0190.01034.58
7.1.30.0130.01334.49
7.1.20.0310.00634.61
7.1.10.0070.01016.86
7.1.00.0070.01617.04

preferences:
31.25 ms | 403 KiB | 5 Q