3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "php/127/typescript/12/jquery/120/angular/50"; preg_match_all("/([^\/]*?)\/(\d+)/", $str, $match); /* result: Array ( [0] => Array ( [0] => php/127 [1] => typescript/12 [2] => jquery/120 [3] => angular/50 ) [1] => Array ( [0] => php [1] => typescript [2] => jquery [3] => angular ) [2] => Array ( [0] => 127 [1] => 12 [2] => 120 [3] => 50 ) ) */ #then combine match[1] and match[2] $result = array_combine($match[1], $match[2]); /* result Array ( [php] => 127 [typescript] => 12 [jquery] => 120 [angular] => 50 ) */ print_r($result);

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.10.0120.00419.80
8.3.140.0030.00517.02
8.3.130.0090.00918.16
8.3.120.0080.00818.97
8.3.110.0160.00020.94
8.3.100.0060.00324.06
8.3.90.0100.00326.77
8.3.80.0090.00016.75
8.3.70.0130.01016.58
8.3.60.0190.00016.50
8.3.50.0070.01224.61
8.3.40.0080.00818.79
8.3.30.0090.00618.94
8.3.20.0030.00724.18
8.3.10.0040.00424.66
8.3.00.0000.00826.16
8.2.260.0150.00318.87
8.2.250.0130.00618.50
8.2.240.0030.00618.72
8.2.230.0090.00622.58
8.2.220.0080.00037.54
8.2.210.0100.01026.77
8.2.200.0060.00316.88
8.2.190.0090.00616.88
8.2.180.0140.00325.92
8.2.170.0190.00319.21
8.2.160.0060.00922.96
8.2.150.0080.00025.66
8.2.140.0080.00024.66
8.2.130.0000.00726.16
8.2.120.0020.00526.35
8.2.110.0060.00320.31
8.2.100.0070.00417.91
8.2.90.0060.00317.63
8.2.80.0040.00418.89
8.2.70.0080.00017.75
8.2.60.0090.00017.93
8.2.50.0030.00618.07
8.2.40.0030.00519.95
8.2.30.0030.00718.10
8.2.20.0040.00418.15
8.2.10.0070.00019.32
8.2.00.0000.00719.26
8.1.310.0000.00818.41
8.1.300.0110.00019.98
8.1.290.0030.00618.88
8.1.280.0130.01025.92
8.1.270.0090.00022.19
8.1.260.0080.00028.09
8.1.250.0040.00428.09
8.1.240.0040.01119.11
8.1.230.0110.00317.89
8.1.220.0040.00417.74
8.1.210.0030.00518.77
8.1.200.0030.00617.35
8.1.190.0080.00017.35
8.1.180.0040.00418.10
8.1.170.0030.00518.29
8.1.160.0040.00418.79
8.1.150.0000.00718.91
8.1.140.0050.00318.93
8.1.130.0030.00320.03
8.1.120.0070.00317.47
8.1.110.0030.00517.53
8.1.100.0040.00417.56
8.1.90.0050.00317.57
8.1.80.0000.00817.55
8.1.70.0040.00417.59
8.1.60.0000.00817.64
8.1.50.0030.00617.63
8.1.40.0080.00017.67
8.1.30.0080.00017.68
8.1.20.0040.00417.59
8.1.10.0040.00417.62
8.1.00.0000.00817.64
8.0.300.0060.00318.77
8.0.290.0090.00016.75
8.0.280.0040.00418.34
8.0.270.0040.00416.88
8.0.260.0030.00318.42
8.0.250.0000.00716.95
8.0.240.0030.00517.06
8.0.230.0000.00716.93
8.0.220.0040.00416.89
8.0.210.0070.00017.00
8.0.200.0030.00317.02
8.0.190.0070.00017.05
8.0.180.0000.00716.98
8.0.170.0070.00316.93
8.0.160.0050.00216.90
8.0.150.0070.00016.97
8.0.140.0050.00516.93
8.0.130.0050.00013.44
8.0.120.0080.00016.99
8.0.110.0070.00016.92
8.0.100.0030.00516.88
8.0.90.0000.00716.88
8.0.80.0070.01016.89
8.0.70.0050.00317.01
8.0.60.0040.00416.92
8.0.50.0070.00016.86
8.0.30.0080.00817.24
8.0.20.0110.00817.28
8.0.10.0000.00717.15
8.0.00.0110.00716.82
7.4.330.0050.00015.55
7.4.320.0060.00016.79
7.4.300.0030.00316.59
7.4.290.0070.00016.78
7.4.280.0040.00416.70
7.4.270.0070.00016.57
7.4.260.0030.00313.39
7.4.250.0000.00716.60
7.4.240.0070.00016.79
7.4.230.0070.00016.84
7.4.220.0000.00716.76
7.4.210.0100.00916.75
7.4.200.0070.00016.79
7.4.130.0040.01416.82
7.4.120.0060.01116.65
7.4.110.0040.01516.48
7.4.100.0100.01616.66
7.4.90.0100.01016.83
7.4.80.0090.00919.39
7.4.70.0090.01216.50
7.4.60.0060.01116.64
7.4.50.0070.01116.54
7.4.40.0100.00716.77
7.4.30.0090.00816.68
7.4.20.0070.01016.72
7.4.10.0070.01016.34
7.4.00.0060.01016.53
7.3.330.0030.00316.32
7.3.320.0030.00313.13
7.3.310.0050.00316.29
7.3.300.0030.00316.40
7.3.290.0060.00816.33
7.3.280.0130.00316.34
7.3.260.0170.00716.31
7.3.230.0090.00916.37
7.3.210.0140.00316.38
7.3.200.0040.01516.68
7.3.190.0100.00716.32
7.3.180.0070.01016.52
7.3.170.0070.00716.44
7.3.160.0160.00016.71
7.3.150.0050.01116.50
7.3.140.0070.00816.38
7.3.130.0060.00916.24
7.3.120.0020.01316.39
7.3.110.0130.00316.64
7.3.100.0070.00716.59
7.3.90.0080.00816.40
7.3.80.0090.00716.29
7.3.70.0140.00316.48
7.3.60.0120.00816.50
7.3.50.0080.00816.50
7.3.40.0110.01116.46
7.3.30.0110.00616.55
7.3.20.0090.00916.31
7.3.10.0130.01016.43
7.3.00.0100.01016.45
7.2.330.0120.01116.76
7.2.310.0060.01316.76
7.2.300.0070.01316.75
7.2.290.0110.00716.58
7.2.280.0080.00916.61
7.2.270.0090.00616.66
7.2.260.0070.01016.76
7.2.250.0140.00316.73
7.2.240.0040.01416.70
7.2.230.0050.01116.55
7.2.220.0140.00316.60
7.2.210.0100.00716.45
7.2.200.0100.01316.59
7.2.190.0100.00716.51
7.2.180.0080.00816.50
7.2.170.0120.00616.41
7.2.160.0080.00816.57
7.2.150.0170.00316.52
7.2.140.0140.01116.84
7.2.130.0150.00916.55
7.2.120.0100.00716.76
7.2.110.0090.01016.69
7.2.100.0110.00816.82
7.2.90.0140.01116.61
7.2.80.0080.01116.61
7.2.70.0210.00416.55
7.2.60.0110.00816.85
7.2.50.0080.01116.83
7.2.40.0110.00716.49
7.2.30.0090.01616.64
7.2.20.0060.01216.48
7.2.10.0000.01716.64
7.2.00.0140.00316.53

preferences:
55.81 ms | 403 KiB | 5 Q