3v4l.org

run code in 300+ PHP versions simultaneously
<?php $regex = "~%(?:(\d+)[$])?[-+]?(?:[ 0]|['].)?(?:[-]?\d+)?(?:[.]\d+)?[%bcdeEufFgGosxX]~"; $format = 'The %s contains %d monkeys'; $arguments = array(5, 'tree'); if (preg_match_all($regex, $format, $expected) > 0) { print_r($expected); }

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.0070.00718.52
8.3.50.0120.00617.61
8.3.40.0110.00419.02
8.3.30.0000.01418.97
8.3.20.0040.00418.73
8.3.10.0000.00820.66
8.3.00.0030.01017.75
8.2.180.0120.00916.38
8.2.170.0140.00422.96
8.2.160.0100.01022.29
8.2.150.0040.00424.18
8.2.140.0030.00524.66
8.2.130.0000.00826.16
8.2.120.0000.00719.83
8.2.110.0060.00321.04
8.2.100.0080.00417.97
8.2.90.0060.00321.07
8.2.80.0000.00817.93
8.2.70.0050.00317.75
8.2.60.0040.00417.55
8.2.50.0000.00818.07
8.2.40.0050.00319.84
8.2.30.0040.00417.96
8.2.20.0040.00417.85
8.2.10.0100.00017.94
8.2.00.0050.00517.83
8.1.280.0090.00625.92
8.1.270.0040.00424.66
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0040.00422.47
8.1.230.0070.00421.04
8.1.220.0050.00317.74
8.1.210.0050.00318.78
8.1.200.0060.00617.61
8.1.190.0000.00817.55
8.1.180.0040.00418.10
8.1.170.0040.00418.97
8.1.160.0070.00018.84
8.1.150.0000.00718.70
8.1.140.0000.00717.63
8.1.130.0030.00317.92
8.1.120.0000.00717.45
8.1.110.0040.00417.43
8.1.100.0030.00417.54
8.1.90.0020.00517.60
8.1.80.0030.00317.45
8.1.70.0030.00317.47
8.1.60.0000.00817.72
8.1.50.0000.00817.43
8.1.40.0030.00617.56
8.1.30.0040.00417.73
8.1.20.0000.00817.59
8.1.10.0000.00817.58
8.1.00.0030.00517.47
8.0.300.0100.00019.77
8.0.290.0070.00016.88
8.0.280.0030.00318.33
8.0.270.0000.00717.12
8.0.260.0000.00616.89
8.0.250.0080.00017.01
8.0.240.0060.00316.91
8.0.230.0030.00316.92
8.0.220.0000.00816.99
8.0.210.0000.00716.88
8.0.200.0070.00016.98
8.0.190.0000.00717.05
8.0.180.0000.00817.01
8.0.170.0040.00416.94
8.0.160.0000.00716.98
8.0.150.0000.00816.93
8.0.140.0030.00616.84
8.0.130.0050.00013.38
8.0.120.0080.00016.98
8.0.110.0050.00216.93
8.0.100.0040.00416.90
8.0.90.0000.00816.86
8.0.80.0040.01117.09
8.0.70.0030.00517.04
8.0.60.0040.00417.05
8.0.50.0040.00416.89
8.0.30.0110.00817.21
8.0.20.0120.00717.19
8.0.10.0080.00017.22
8.0.00.0120.00616.92
7.4.330.0060.00013.30
7.4.320.0030.00316.81
7.4.300.0000.00716.69
7.4.290.0030.00316.78
7.4.280.0030.00716.73
7.4.270.0000.00716.60
7.4.260.0050.00313.47
7.4.250.0030.00616.85
7.4.240.0030.00316.73
7.4.230.0000.00716.55
7.4.220.0140.00616.75
7.4.210.0090.00616.76
7.4.200.0000.00716.91
7.4.190.0040.00416.69
7.4.160.0130.00316.80
7.4.150.0120.00916.57
7.4.140.0150.00516.77
7.4.130.0110.00616.49
7.4.120.0090.00816.78
7.4.110.0140.01016.59
7.4.100.0190.00416.66
7.4.90.0100.00716.68
7.4.80.0070.01016.55
7.4.70.0100.00616.62
7.4.60.0030.01516.47
7.4.50.0000.00616.58
7.4.40.0030.01216.64
7.4.30.0030.01416.70
7.4.00.0030.01315.02
7.3.330.0030.00313.23
7.3.320.0060.00013.21
7.3.310.0030.00516.31
7.3.300.0000.00716.37
7.3.290.0070.00716.38
7.3.280.0060.00916.40
7.3.270.0060.01216.63
7.3.260.0050.01316.61
7.3.250.0050.01616.32
7.3.240.0100.00716.45
7.3.230.0140.00716.50
7.3.210.0030.01316.31
7.3.200.0070.01719.39
7.3.190.0030.02016.68
7.3.180.0170.00016.27
7.3.170.0150.00316.45
7.3.160.0070.01016.72
7.3.120.0040.01414.61
7.2.330.0030.01616.49
7.2.320.0060.01216.70
7.2.310.0070.01616.63
7.2.300.0130.01316.56
7.2.290.0160.00016.68
7.1.70.0030.00717.27
7.1.60.0140.01119.40
7.1.50.0100.01016.78
7.1.00.0030.07722.46
7.0.200.0070.00716.95
7.0.140.0000.09721.95
7.0.120.0000.07322.06
7.0.60.0100.08019.91
7.0.50.0030.07318.00
7.0.40.0100.04320.24
7.0.30.0230.04020.32
7.0.20.0170.04020.14
7.0.10.0030.04320.27
7.0.00.0170.08020.13
5.6.280.0030.07021.06
5.6.210.0130.04720.60
5.6.200.0130.08018.27
5.6.190.0000.05020.65
5.6.180.0270.08320.47
5.6.170.0270.04720.46
5.6.160.0030.04020.50
5.6.150.0200.07018.18
5.6.140.0100.03718.19
5.6.130.0030.09018.18
5.6.120.0030.07021.07
5.6.110.0030.04021.13
5.6.100.0070.06720.97
5.6.90.0130.08020.98
5.6.80.0030.04320.28
5.5.350.0270.07020.42
5.5.340.0070.05318.09
5.5.330.0130.08320.57
5.5.320.0200.05320.34
5.5.310.0230.08020.34
5.5.300.0070.08717.98
5.5.290.0030.04018.04
5.5.280.0000.08020.67
5.5.270.0200.05720.86
5.5.260.0170.07320.84
5.5.250.0130.06720.59
5.5.240.0030.06720.15
5.4.450.0030.08719.48
5.4.440.0030.08719.20
5.4.430.0100.08719.29
5.4.420.0100.07019.29
5.4.410.0070.06019.34
5.4.400.0070.07019.15
5.4.390.0070.04318.93
5.4.380.0100.06718.85
5.4.370.0030.04019.11
5.4.360.0130.07018.85
5.4.350.0070.07019.20
5.4.340.0170.06718.85
5.4.320.0030.04019.24
5.4.310.0170.03019.08
5.4.300.0030.03719.23
5.4.290.0030.06019.15
5.4.280.0030.04018.92
5.4.270.0000.04019.09
5.4.260.0070.03318.91
5.4.250.0030.04318.84
5.4.240.0070.04718.97
5.4.230.0100.07319.23
5.4.220.0130.06719.11
5.4.210.0100.07019.14
5.4.200.0000.08018.86
5.4.190.0100.03719.23
5.4.180.0070.03719.23
5.4.170.0100.06318.84
5.4.160.0030.08319.22
5.4.150.0130.06018.83
5.4.140.0100.04716.32
5.4.130.0130.06316.30
5.4.120.0000.04016.37
5.4.110.0070.07016.43
5.4.100.0100.03016.37
5.4.90.0030.06016.45
5.4.80.0030.07316.37
5.4.70.0100.06716.41
5.4.60.0070.04316.31
5.4.50.0030.04716.38
5.4.40.0100.07016.50
5.4.30.0100.07016.64
5.4.20.0000.05316.53
5.4.10.0070.05316.27
5.4.00.0030.04715.78
5.3.290.0170.03014.58
5.3.280.0130.05314.73
5.3.270.0070.07014.52
5.3.260.0070.05014.74
5.3.250.0070.04314.60
5.3.240.0170.06714.62
5.3.230.0100.03714.59
5.3.220.0030.03714.71
5.3.210.0170.02314.56
5.3.200.0170.06014.60
5.3.190.0000.04014.71
5.3.180.0030.03714.70
5.3.170.0030.08014.63
5.3.160.0070.07714.71
5.3.150.0100.07014.61
5.3.140.0200.06714.54
5.3.130.0100.06714.59
5.3.120.0030.04014.43
5.3.110.0100.05714.55
5.3.100.0070.07714.05
5.3.90.0070.07714.08
5.3.80.0100.07014.00
5.3.70.0070.05713.98
5.3.60.0000.06013.99
5.3.50.0000.08013.97
5.3.40.0130.04013.88
5.3.30.0070.06014.06
5.3.20.0070.07013.73
5.3.10.0100.07313.80
5.3.00.0070.03713.59
5.2.170.0100.05011.15
5.2.160.0100.04711.29
5.2.150.0100.05011.10
5.2.140.0100.05311.21
5.2.130.0000.04011.05
5.2.120.0000.06311.14
5.2.110.0070.05311.15
5.2.100.0100.02311.17
5.2.90.0070.04311.15
5.2.80.0070.04311.10
5.2.70.0070.03311.14
5.2.60.0000.03311.18
5.2.50.0030.06011.15
5.2.40.0000.05311.14
5.2.30.0030.06011.03
5.2.20.0030.03011.02
5.2.10.0070.05710.77
5.2.00.0070.04010.77
5.1.60.0070.0309.98
5.1.50.0030.05710.05
5.1.40.0070.0339.94
5.1.30.0070.04310.41
5.1.20.0030.03010.39
5.1.10.0100.02710.22
5.1.00.0070.03010.07
5.0.50.0070.0478.44
5.0.40.0070.0278.36
5.0.30.0100.0478.20
5.0.20.0070.0438.20
5.0.10.0030.0238.08
5.0.00.0030.0408.13
4.4.90.0000.0307.43
4.4.80.0030.0377.43
4.4.70.0000.0277.43
4.4.60.0030.0207.43
4.4.50.0030.0377.43
4.4.40.0000.0307.43
4.4.30.0030.0177.43
4.4.20.0030.0137.43
4.4.10.0000.0337.43
4.4.00.0000.0577.43
4.3.110.0000.0407.43
4.3.100.0100.0277.43
4.3.90.0000.0237.43
4.3.80.0030.0277.43
4.3.70.0070.0237.43
4.3.60.0030.0337.43
4.3.50.0070.0337.43
4.3.40.0000.0577.43
4.3.30.0030.0307.43
4.3.20.0000.0177.43
4.3.10.0000.0177.43
4.3.00.0000.0377.43

preferences:
47.75 ms | 401 KiB | 5 Q