3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = ["/?dfs1=frgs1","/?dfs2=frgs2","/?dfs3=frgs3"]; $matches = preg_grep("/\/\?(.*)\=(.*)/", $a); $fmatchs = []; foreach($matches as $match){ $mtchs = explode("=", $match); print($match); print_r($mtchs); foreach($mtchs as $v){ echo "dddd".$v[0]; $k = str_replace("/?", "", $v[0]); $fmatchs[$k] = $v[1]; } } print_r($fmatchs);

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.60.0100.00518.43
8.3.50.0070.01322.02
8.3.40.0120.00318.82
8.3.30.0110.00418.75
8.3.20.0070.00020.39
8.3.10.0060.00323.36
8.3.00.0040.00419.55
8.2.180.0100.01016.75
8.2.170.0040.01122.96
8.2.160.0110.00319.16
8.2.150.0130.00324.18
8.2.140.0040.00424.66
8.2.130.0110.00021.25
8.2.120.0040.00426.35
8.2.110.0070.00322.38
8.2.100.0060.00618.03
8.2.90.0060.00319.22
8.2.80.0040.00417.97
8.2.70.0040.00417.75
8.2.60.0060.00317.93
8.2.50.0040.00418.10
8.2.40.0120.00020.45
8.2.30.0000.00719.35
8.2.20.0000.00717.92
8.2.10.0000.00718.05
8.2.00.0020.00518.23
8.1.280.0150.00925.92
8.1.270.0040.00423.84
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0040.00422.76
8.1.230.0040.00820.76
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0060.00317.47
8.1.190.0030.00517.36
8.1.180.0080.00018.10
8.1.170.0030.00618.51
8.1.160.0070.00022.19
8.1.150.0070.00020.76
8.1.140.0040.00419.67
8.1.130.0070.00017.72
8.1.120.0030.00517.62
8.1.110.0000.00817.66
8.1.100.0040.00417.54
8.1.90.0050.00317.52
8.1.80.0040.00417.65
8.1.70.0030.00317.61
8.1.60.0000.00817.72
8.1.50.0050.00317.69
8.1.40.0080.00317.59
8.1.30.0040.00417.75
8.1.20.0000.00717.73
8.1.10.0040.00417.69
8.1.00.0000.00817.58
8.0.300.0050.00218.77
8.0.290.0000.00717.00
8.0.280.0040.00418.38
8.0.270.0040.00417.22
8.0.260.0000.00617.23
8.0.250.0040.00417.13
8.0.240.0000.00917.05
8.0.230.0030.00617.16
8.0.220.0000.00716.95
8.0.210.0100.00016.96
8.0.200.0040.00416.99
8.0.190.0020.00517.09
8.0.180.0040.00417.07
8.0.170.0030.00616.99
8.0.160.0000.00817.06
8.0.150.0000.00716.96
8.0.140.0000.00717.01
8.0.130.0060.00013.50
8.0.120.0000.00917.05
8.0.110.0070.00017.04
8.0.100.0070.00016.93
8.0.90.0000.00717.03
8.0.80.0090.01216.97
8.0.70.0080.00016.97
8.0.60.0000.00717.12
8.0.50.0040.00416.89
8.0.30.0150.00717.09
8.0.20.0130.00617.40
8.0.10.0000.00717.18
8.0.00.0080.00817.07
7.4.330.0020.00315.12
7.4.320.0000.00616.61
7.4.300.0030.00316.83
7.4.290.0070.00016.82
7.4.280.0000.01116.71
7.4.270.0070.00016.76
7.4.260.0090.00316.69
7.4.250.0000.00716.75
7.4.240.0000.00716.64
7.4.230.0070.00016.63
7.4.220.0210.00316.88
7.4.210.0120.00416.78
7.4.200.0030.00316.82
7.4.160.0120.00616.81
7.4.150.0100.00917.40
7.4.140.0100.00817.86
7.4.130.0060.01216.73
7.4.120.0120.00816.70
7.4.110.0130.01016.80
7.4.100.0090.01216.79
7.4.90.0150.00416.76
7.4.80.0090.00919.39
7.4.70.0070.01016.91
7.4.60.0030.01516.79
7.4.50.0080.00816.55
7.4.40.0030.01916.71
7.4.30.0080.01516.70
7.4.00.0050.01015.21
7.3.330.0000.00513.32
7.3.320.0000.00713.21
7.3.310.0030.00316.53
7.3.300.0030.00316.53
7.3.290.0000.00716.36
7.3.280.0100.00916.49
7.3.270.0090.00917.40
7.3.260.0120.00616.60
7.3.250.0110.01016.62
7.3.240.0090.00816.80
7.3.230.0100.01016.50
7.3.210.0110.00716.53
7.3.200.0100.00716.52
7.3.190.0090.00916.76
7.3.180.0160.00616.54
7.3.170.0030.01516.78
7.3.160.0080.01216.55
7.3.120.0060.01015.07
7.3.110.0030.01315.29
7.3.100.0000.01514.88
7.3.90.0110.00415.03
7.3.80.0030.00615.16
7.3.70.0040.01115.14
7.3.60.0070.00715.13
7.3.50.0030.01015.00
7.3.40.0070.01015.01
7.3.30.0090.00615.09
7.3.20.0000.01016.95
7.3.10.0030.00916.94
7.3.00.0040.01216.86
7.2.330.0090.00816.77
7.2.320.0090.01516.89
7.2.310.0060.01616.80
7.2.300.0060.01016.79
7.2.290.0130.01016.86
7.2.250.0040.01515.26
7.2.240.0090.00915.48
7.2.230.0080.00415.00
7.2.220.0030.00715.08
7.2.210.0000.01815.33
7.2.200.0060.00915.41
7.2.190.0090.00615.29
7.2.180.0100.00015.26
7.2.170.0070.01115.35
7.2.60.0060.01217.06
7.2.00.0030.01319.40
7.1.330.0000.01315.85
7.1.320.0000.01315.93
7.1.310.0030.00916.03
7.1.300.0090.00915.74
7.1.290.0000.01515.93
7.1.280.0040.01416.12
7.1.270.0060.00916.14
7.1.260.0030.00616.20
7.1.200.0080.00616.08
7.1.70.0070.00017.03
7.1.60.0040.00817.52
7.1.50.0090.01316.87
7.1.00.0000.08022.59
7.0.200.0000.01516.91
7.0.80.3670.06320.00
7.0.70.0130.05720.20
7.0.60.0270.04320.06
7.0.50.3970.04720.40
7.0.40.0130.06020.32
7.0.30.3800.07720.38
7.0.20.0100.07020.39
7.0.10.3270.06020.45
7.0.00.2970.05020.31
5.6.230.0070.07020.59
5.6.220.0170.05320.68
5.6.210.0030.06720.56
5.6.200.0130.07721.14
5.6.190.0030.0307.10
5.6.180.0130.06321.06
5.6.170.0130.06021.00
5.6.160.0200.06321.08
5.6.150.0170.05721.09
5.6.140.0100.06021.07
5.6.130.0200.05321.17
5.6.120.0170.06021.08
5.6.110.0200.05721.00
5.6.100.0200.06721.10
5.6.90.0170.05721.14
5.6.80.0230.05320.46
5.6.70.0200.05720.55
5.6.60.0170.05020.50
5.6.50.0200.05020.50
5.6.40.0070.06320.44
5.6.30.0100.06720.44
5.6.20.0130.06720.45
5.6.10.0170.06020.36
5.6.00.0100.06720.42

preferences:
57.77 ms | 401 KiB | 5 Q