3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "var1,'Hello'|var2,'World'|"; preg_match_all('/(?:^|\|)([^,]+),([^\|]+(?=\||$))/', $str, $matches); $new_substr = array_combine($matches[1], $matches[2]); print_r($new_substr);

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.70.0090.00616.63
8.3.60.0110.00418.55
8.3.50.0040.01119.35
8.3.40.0120.00318.75
8.3.30.0040.01118.71
8.3.20.0050.00320.91
8.3.10.0000.00821.93
8.3.00.0040.00423.69
8.2.190.0140.00716.63
8.2.180.0060.00925.92
8.2.170.0070.00719.04
8.2.160.0180.00021.19
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.00817.85
8.2.120.0040.00426.35
8.2.110.0030.00721.00
8.2.100.0050.00517.91
8.2.90.0040.00418.34
8.2.80.0030.00620.84
8.2.70.0000.00817.75
8.2.60.0050.00517.75
8.2.50.0000.00817.75
8.2.40.0040.00419.41
8.2.30.0030.00320.64
8.2.20.0070.00018.16
8.2.10.0030.00519.34
8.2.00.0000.00718.13
8.1.280.0090.00625.92
8.1.270.0030.00522.14
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00322.18
8.1.230.0110.00022.81
8.1.220.0080.00017.76
8.1.210.0040.00419.95
8.1.200.0050.00317.48
8.1.190.0050.00517.22
8.1.180.0050.00518.10
8.1.170.0040.00418.61
8.1.160.0060.00318.85
8.1.150.0000.00718.86
8.1.140.0000.00819.13
8.1.130.0070.00020.29
8.1.120.0000.00717.48
8.1.110.0000.00817.61
8.1.100.0000.00717.55
8.1.90.0030.00717.42
8.1.80.0000.00717.62
8.1.70.0050.00517.48
8.1.60.0000.00917.67
8.1.50.0040.00417.65
8.1.40.0000.00917.54
8.1.30.0000.00817.69
8.1.20.0070.00417.74
8.1.10.0030.00617.78
8.1.00.0040.00417.65
8.0.300.0060.00320.07
8.0.290.0000.00816.75
8.0.280.0080.00018.34
8.0.270.0000.00717.24
8.0.260.0000.00618.42
8.0.250.0040.00417.04
8.0.240.0060.00317.08
8.0.230.0070.00017.04
8.0.220.0000.01017.01
8.0.210.0070.00016.93
8.0.200.0040.00416.99
8.0.190.0060.00317.05
8.0.180.0000.00817.04
8.0.170.0000.00916.89
8.0.160.0030.00517.01
8.0.150.0000.00816.95
8.0.140.0050.00216.96
8.0.130.0000.00613.41
8.0.120.0080.00016.86
8.0.110.0040.00416.91
8.0.100.0040.00417.05
8.0.90.0020.00517.04
8.0.80.0100.00616.94
8.0.70.0040.00416.87
8.0.60.0040.00417.03
8.0.50.0000.00817.00
8.0.30.0090.01117.23
8.0.20.0040.01417.42
8.0.10.0040.00416.96
8.0.00.0090.01216.91
7.4.330.0020.00216.68
7.4.320.0030.00316.80
7.4.300.0030.00316.76
7.4.290.0030.00316.65
7.4.280.0030.00616.66
7.4.270.0000.00716.71
7.4.260.0000.00816.65
7.4.250.0050.00216.59
7.4.240.0040.00416.67
7.4.230.0030.00316.51
7.4.220.0070.00016.86
7.4.210.0120.00616.68
7.4.200.0030.00316.86
7.4.160.0070.01116.66
7.4.140.0060.01017.86
7.4.130.0110.00716.66
7.4.120.0140.00316.67
7.4.110.0090.00916.62
7.4.100.0090.00916.61
7.4.90.0100.00716.71
7.4.80.0110.00719.39
7.4.70.0070.01516.66
7.4.60.0090.00616.67
7.4.50.0090.00616.61
7.4.40.0070.01016.64
7.4.00.0050.01314.99
7.3.330.0000.00513.10
7.3.320.0030.00313.11
7.3.310.0040.00416.22
7.3.300.0000.00716.41
7.3.290.0030.00316.37
7.3.280.0050.01016.34
7.3.260.0120.00716.50
7.3.240.0090.00816.46
7.3.230.0000.01716.71
7.3.210.0060.01216.62
7.3.200.0140.00216.33
7.3.190.0030.01416.57
7.3.180.0130.00916.66
7.3.170.0100.00616.61
7.3.160.0090.01316.57
7.3.120.0070.00714.87
7.3.110.0100.00714.91
7.3.100.0060.00614.46
7.3.90.0040.01414.82
7.3.80.0040.00914.92
7.3.70.0140.00014.95
7.3.60.0030.01015.02
7.3.50.0000.01315.05
7.3.40.0090.00414.80
7.3.30.0100.00414.68
7.3.20.0090.01015.85
7.3.10.0060.00815.80
7.3.00.0120.00615.86
7.2.330.0090.00916.48
7.2.320.0070.01016.73
7.2.310.0090.01216.61
7.2.300.0140.00416.64
7.2.290.0100.00716.54
7.2.250.0040.01515.29
7.2.240.0100.01014.65
7.2.230.0100.01015.12
7.2.220.0030.01514.98
7.2.210.0070.01315.34
7.2.200.0080.01115.08
7.2.190.0030.00715.16
7.2.180.0070.00315.26
7.2.170.0050.00815.30
7.2.160.0030.00715.01
7.2.150.0160.00015.09
7.2.140.0080.00415.17
7.2.130.0190.00315.05
7.2.120.0110.00715.21
7.2.110.0090.00915.11
7.2.100.0120.00614.83
7.2.90.0080.01215.12
7.2.80.0130.00315.00
7.2.70.0030.01015.17
7.2.60.0070.00715.15
7.2.50.0070.01115.00
7.2.40.0100.00715.29
7.2.30.0140.00315.22
7.2.20.0120.00615.19
7.2.10.0070.01015.10
7.2.00.0070.01615.12
7.1.330.0100.00316.02
7.1.320.0140.00315.95
7.1.310.0140.00016.04
7.1.300.0040.00716.01
7.1.290.0030.01315.94
7.1.280.0120.00714.97
7.1.270.0070.00915.05
7.1.260.0120.00515.15
7.1.250.0040.01314.02

preferences:
32.06 ms | 401 KiB | 5 Q