3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = '{1|{1078} {*|{1079}-}test{1|{4829}, test2 {4457}}} {*|{1078} {*|{1079}-}test3{1|{4829}, test4 {23232}}}'; if (preg_match_all('~\|\{(\d+)}~', $s, $matches)) { print_r(array_unique($matches[1])); }

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.130.0030.00618.44
8.3.120.0040.01218.63
8.3.110.0040.00420.94
8.3.100.0040.01116.78
8.3.90.0050.00326.77
8.3.80.0000.01018.43
8.3.70.0120.00316.48
8.3.60.0090.01218.28
8.3.50.0110.00617.20
8.3.40.0040.01118.94
8.3.30.0040.01118.92
8.3.20.0070.00021.74
8.3.10.0040.00421.80
8.3.00.0000.00823.48
8.2.250.0120.00318.60
8.2.240.0000.00817.17
8.2.230.0030.00622.58
8.2.220.0060.00324.06
8.2.210.0160.00326.77
8.2.200.0040.00418.41
8.2.190.0070.01116.63
8.2.180.0140.00716.75
8.2.170.0090.00922.96
8.2.160.0110.00320.46
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0000.00726.16
8.2.110.0070.00321.23
8.2.100.0090.00317.89
8.2.90.0030.00618.03
8.2.80.0080.00019.79
8.2.70.0000.00817.80
8.2.60.0040.00418.03
8.2.50.0040.00418.10
8.2.40.0040.00420.23
8.2.30.0050.00219.21
8.2.20.0000.00717.95
8.2.10.0040.00419.11
8.2.00.0040.00419.11
8.1.300.0030.01218.66
8.1.290.0060.00318.88
8.1.280.0100.01025.92
8.1.270.0050.00323.92
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0100.00721.99
8.1.230.0000.01120.84
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0060.00317.35
8.1.190.0040.00417.36
8.1.180.0000.00818.10
8.1.170.0060.00318.78
8.1.160.0050.00318.91
8.1.150.0000.00718.76
8.1.140.0040.00418.86
8.1.130.0070.00017.57
8.1.120.0030.00517.61
8.1.110.0000.00717.39
8.1.100.0030.00517.52
8.1.90.0030.00517.55
8.1.80.0000.00817.55
8.1.70.0000.00717.43
8.1.60.0000.01017.55
8.1.50.0040.00417.60
8.1.40.0040.00417.62
8.1.30.0040.00417.74
8.1.20.0030.00517.68
8.1.10.0040.00417.76
8.1.00.0040.00417.70
8.0.300.0040.00419.82
8.0.290.0030.00616.75
8.0.280.0050.00218.32
8.0.270.0030.00317.21
8.0.260.0030.00316.80
8.0.250.0040.00417.03
8.0.240.0040.00417.01
8.0.230.0020.00517.02
8.0.220.0030.00316.96
8.0.210.0070.00016.87
8.0.200.0030.00316.96
8.0.190.0040.00417.11
8.0.180.0030.00316.95
8.0.170.0000.00916.99
8.0.160.0030.00317.01
8.0.150.0000.00716.95
8.0.140.0040.00416.82
8.0.130.0000.00613.40
8.0.120.0090.00016.90
8.0.110.0040.00416.80
8.0.100.0020.00516.91
8.0.90.0040.00416.98
8.0.80.0090.00917.00
8.0.70.0030.00316.79
8.0.60.0070.00016.79
8.0.50.0040.00417.08
8.0.30.0060.01217.30
8.0.20.0130.00617.22
8.0.10.0000.00717.07
8.0.00.0100.00816.86
7.4.330.0030.00315.55
7.4.320.0030.00316.50
7.4.300.0030.00316.79
7.4.290.0040.00416.73
7.4.280.0080.00016.64
7.4.270.0000.00716.54
7.4.260.0030.00316.68
7.4.250.0080.00016.71
7.4.240.0020.00516.68
7.4.230.0030.00316.82
7.4.220.0050.00316.84
7.4.210.0100.00616.72
7.4.200.0030.00316.84
7.4.160.0120.00816.68
7.4.130.0140.00416.74
7.4.120.0100.00716.62
7.4.110.0190.00316.61
7.4.100.0120.00916.59
7.4.90.0090.00916.56
7.4.80.0090.01319.39
7.4.70.0080.00816.55
7.4.60.0000.01616.59
7.4.50.0060.00916.52
7.4.40.0130.00316.68
7.4.00.0000.01214.98
7.3.330.0020.00213.21
7.3.320.0030.00313.27
7.3.310.0070.00016.38
7.3.300.0070.00016.37
7.3.290.0040.00416.34
7.3.280.0060.00916.35
7.3.260.0100.01116.60
7.3.240.0090.00916.48
7.3.230.0150.00316.34
7.3.210.0070.01116.80
7.3.200.0070.01016.33
7.3.190.0060.00916.75
7.3.180.0090.00616.59
7.3.170.0080.00816.55
7.3.160.0130.00316.35
7.3.60.0070.00315.03
7.3.50.0130.00014.83
7.3.40.0070.00314.81
7.3.30.0110.00714.80
7.3.20.0100.00614.89
7.3.10.0130.00014.88
7.3.00.0160.01014.86
7.2.330.0090.00916.66
7.2.320.0150.00916.64
7.2.310.0150.00616.58
7.2.300.0090.00816.65
7.2.290.0000.01616.74
7.2.190.0000.01415.03
7.2.180.0100.00315.04
7.2.170.0100.01314.53
7.2.160.0100.01014.91
7.2.150.0200.00515.09
7.2.140.0080.00515.07
7.2.130.0210.00415.03
7.2.120.0170.00314.74
7.2.110.0150.00315.10
7.2.100.0070.00714.95
7.2.90.0280.00914.91
7.2.80.0130.01014.89
7.2.70.0110.00615.11
7.2.60.0100.00615.14
7.2.50.0060.01215.27
7.2.40.0140.01115.18
7.2.30.0130.00315.23
7.2.20.0200.00315.21
7.2.10.0250.00315.01
7.2.00.0140.00315.02
7.1.300.1000.00614.15
7.1.290.0120.00013.75
7.1.280.0130.00614.09
7.1.270.0080.00813.92
7.1.260.0090.00313.90
7.1.250.0160.00614.03

preferences:
24.13 ms | 403 KiB | 5 Q