3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = 'YO_{ YO_{ YO_{ McDonalds. } } }';; $test = preg_replace_callback($p = '/YO_\{(.*)\}/s', $f = function($matches) use (&$f, &$p) { return preg_match($p, $matches[1]) ?trim(preg_replace_callback($p, $f, $matches[1])) :$matches[1]; }, $test);

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.0110.00418.32
8.3.50.0150.00322.11
8.3.40.0070.01419.09
8.3.30.0110.00419.07
8.3.20.0080.00020.16
8.3.10.0070.00721.95
8.3.00.0080.00022.52
8.2.180.0190.00016.73
8.2.170.0140.00022.96
8.2.160.0150.00020.84
8.2.150.0030.00624.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00717.63
8.2.110.0060.00321.31
8.2.100.0040.00717.97
8.2.90.0000.00819.31
8.2.80.0050.00317.97
8.2.70.0030.00717.88
8.2.60.0030.00617.93
8.2.50.0040.00718.10
8.2.40.0030.00618.16
8.2.30.0040.00418.15
8.2.20.0000.00817.83
8.2.10.0030.00617.99
8.2.00.0040.00417.92
8.1.280.0090.00625.92
8.1.270.0040.00422.27
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0070.01122.75
8.1.230.0070.00417.83
8.1.220.0080.00017.88
8.1.210.0000.00818.77
8.1.200.0030.00617.38
8.1.190.0040.00417.48
8.1.180.0040.00418.10
8.1.170.0030.00518.76
8.1.160.0040.00422.10
8.1.150.0040.00418.82
8.1.140.0030.00617.57
8.1.130.0000.00717.81
8.1.120.0000.00717.65
8.1.110.0030.00517.50
8.1.100.0040.00417.60
8.1.90.0030.00517.66
8.1.80.0040.00417.64
8.1.70.0030.00317.59
8.1.60.0050.00217.63
8.1.50.0000.00817.54
8.1.40.0000.00717.66
8.1.30.0030.00617.81
8.1.20.0030.00517.81
8.1.10.0080.00017.68
8.1.00.0000.00817.54
8.0.300.0000.00818.77
8.0.290.0000.00916.88
8.0.280.0000.00718.45
8.0.270.0050.00317.30
8.0.260.0070.00017.02
8.0.250.0030.00517.05
8.0.240.0030.00617.00
8.0.230.0000.00717.13
8.0.220.0000.00717.10
8.0.210.0000.00717.10
8.0.200.0040.00417.12
8.0.190.0070.00017.07
8.0.180.0000.00717.05
8.0.170.0040.00416.99
8.0.160.0080.00017.09
8.0.150.0040.00417.06
8.0.140.0030.00617.02
8.0.130.0060.00013.48
8.0.120.0040.00416.93
8.0.110.0070.00017.05
8.0.100.0040.00417.07
8.0.90.0000.00717.11
8.0.80.0090.00617.01
8.0.70.0000.00816.93
8.0.60.0070.00017.15
8.0.50.0040.00416.88
8.0.30.0120.00917.26
8.0.20.0080.01017.40
8.0.10.0050.00217.22
8.0.00.0120.00616.92
7.4.330.0050.00015.17
7.4.320.0060.00016.69
7.4.300.0000.00616.60
7.4.290.0000.00816.72
7.4.280.0030.00316.82
7.4.270.0000.00716.82
7.4.260.0070.00016.86
7.4.250.0030.00516.69
7.4.240.0020.00516.75
7.4.230.0000.00716.55
7.4.220.0110.00716.87
7.4.210.0090.00716.87
7.4.200.0070.00016.71
7.4.190.0080.00016.89
7.4.160.0040.01216.84
7.4.150.0100.01517.40
7.4.140.0090.01017.86
7.4.130.0090.00916.73
7.4.120.0080.01016.88
7.4.110.0090.00916.58
7.4.100.0060.01216.87
7.4.90.0130.00316.54
7.4.80.0140.00516.99
7.4.70.0080.00816.58
7.4.60.0070.01016.67
7.4.50.0050.00316.78
7.4.40.0060.00522.77
7.4.30.0080.00916.76
7.4.00.0040.01215.23
7.3.330.0030.00313.47
7.3.320.0050.00013.38
7.3.310.0050.00316.46
7.3.300.0060.00016.40
7.3.290.0030.01016.48
7.3.280.0090.00716.53
7.3.270.0080.00817.40
7.3.260.0110.00716.57
7.3.250.0080.01216.66
7.3.240.0040.01416.64
7.3.230.0120.00916.70
7.3.210.0060.01016.65
7.3.200.0090.01219.39
7.3.190.0090.00916.45
7.3.180.0110.00516.67
7.3.170.0070.00716.61
7.3.160.0070.01016.60
7.3.120.0050.01014.91
7.3.110.0110.00714.82
7.3.100.0070.00714.75
7.3.90.0060.01015.26
7.3.80.0040.01114.93
7.3.70.0090.00615.09
7.3.60.0040.00815.10
7.3.50.0000.01514.93
7.3.40.0030.00615.08
7.3.30.0030.00914.81
7.3.20.0090.00616.95
7.3.10.0160.00516.59
7.3.00.0040.00816.75
7.2.330.0060.01316.80
7.2.320.0000.01916.88
7.2.310.0090.00916.94
7.2.300.0070.01016.81
7.2.290.0030.01416.92
7.2.250.0080.01115.23
7.2.240.0060.01015.34
7.2.230.0160.00315.31
7.2.220.0040.00715.04
7.2.210.0100.00314.94
7.2.200.0040.01415.17
7.2.190.0060.01014.95
7.2.180.0030.01315.37
7.2.170.0040.00815.07
7.2.130.0110.00716.70
7.2.120.0050.00816.82
7.2.110.0050.00917.00
7.2.100.0070.00916.97
7.2.90.0100.01016.81
7.2.80.0260.00316.63
7.2.70.0140.00416.82
7.2.60.0040.01416.72
7.2.50.0170.00916.81
7.2.40.0080.00816.84
7.2.30.0090.00616.97
7.2.20.0150.00416.71
7.2.10.0170.00716.48
7.2.00.0120.00718.28
7.1.330.0070.00715.89
7.1.320.0000.00915.85
7.1.310.0000.01316.07
7.1.300.0000.01515.79
7.1.290.0100.00715.87
7.1.280.0110.00416.02
7.1.270.0080.00615.88
7.1.260.0000.01116.04
7.1.250.0120.00815.80
7.1.100.0000.01118.14
7.1.70.0000.00817.07
7.1.60.0090.01519.82
7.1.50.0100.01317.30
7.1.00.0070.07322.26
7.0.200.0040.00816.86
7.0.140.0000.07721.92
7.0.120.0000.05722.04
7.0.110.0030.03321.98
7.0.100.0000.05022.15
7.0.90.0070.07322.14
7.0.80.0000.07322.04
7.0.70.0000.07322.01
7.0.60.0030.08022.05
7.0.50.0070.04722.12
7.0.40.0000.07319.93
7.0.30.0000.08320.10
7.0.20.0000.08719.93
7.0.10.0000.07720.01
7.0.00.0070.08720.02
5.6.280.0030.07321.12
5.6.270.0030.04020.91
5.6.260.0000.05321.04
5.6.250.0070.06021.03
5.6.240.0100.08020.80
5.6.230.0000.07321.04
5.6.220.0030.04020.76
5.6.210.0070.07720.90
5.6.200.0070.04720.99
5.6.190.0070.06021.03
5.6.180.0000.04720.99
5.6.170.0070.04720.98
5.6.160.0070.08020.89
5.6.150.0000.09021.02
5.6.140.0030.08320.98
5.6.130.0070.07720.98
5.6.120.0030.07320.74
5.6.110.0070.06020.74
5.6.100.0000.03720.73
5.6.90.0070.03321.00
5.6.80.0000.04020.34
5.6.70.0100.06720.12
5.6.60.0070.07320.15
5.6.50.0070.06720.34
5.6.40.0030.08020.15
5.6.30.0070.05720.36
5.6.20.0000.06320.05
5.6.10.0130.07320.39
5.6.00.0030.07720.05
5.5.380.0030.07017.68
5.5.370.0000.05017.70
5.5.360.0030.06717.59
5.5.350.0000.04717.51
5.5.340.0070.07717.91
5.5.330.0030.07717.92
5.5.320.0000.03718.09
5.5.310.0070.07718.15
5.5.300.0100.02717.93
5.5.290.0070.07017.93
5.5.280.0030.08318.25
5.5.270.0030.07018.22
5.5.260.0000.06718.09
5.5.250.0070.03017.73
5.5.240.0030.06717.52
5.5.230.0000.08017.51
5.5.220.0030.08017.60
5.5.210.0070.07317.47
5.5.200.0030.06017.19
5.5.190.0030.07017.58
5.5.180.0030.04717.18
5.5.160.0070.05017.45
5.5.150.0000.06317.47
5.5.140.0000.03717.47
5.5.130.0000.06017.58
5.5.120.0030.06317.48
5.5.110.0030.03317.46
5.5.100.0070.07317.32
5.5.90.0000.06017.48
5.5.80.0030.07017.39
5.5.70.0000.06717.19
5.5.60.0000.07017.34
5.5.50.0000.08017.29
5.5.40.0070.06317.38
5.5.30.0070.04017.17
5.5.20.0070.03317.03
5.5.10.0030.03317.46
5.5.00.0000.05717.34
5.4.450.0030.07319.29
5.4.440.0000.07019.22
5.4.430.0000.07019.48
5.4.420.0030.08019.57
5.4.410.0030.03319.09
5.4.400.0030.03019.13
5.4.390.0070.07319.14
5.4.380.0070.04318.92
5.4.370.0000.08019.11
5.4.360.0000.08019.09
5.4.350.0070.07319.12
5.4.340.0130.06718.96
5.4.320.0030.06019.04
5.4.310.0000.03718.89
5.4.300.0030.03719.25
5.4.290.0030.06018.93
5.4.280.0000.06019.12
5.4.270.0000.05018.93
5.4.260.0000.07319.11
5.4.250.0030.07019.11
5.4.240.0000.07718.90
5.4.230.0030.06018.92
5.4.220.0000.05018.90
5.4.210.0070.07318.98
5.4.200.0070.06718.88
5.4.190.0030.05319.26
5.4.180.0030.03718.89
5.4.170.0070.06719.16
5.4.160.0030.04019.24
5.4.150.0000.04019.10
5.4.140.0070.03016.42
5.4.130.0000.04716.48
5.4.120.0030.06016.48
5.4.110.0000.06716.36
5.4.100.0170.02716.39
5.4.90.0100.02716.20
5.4.80.0000.05016.54
5.4.70.0030.07016.54
5.4.60.0000.06016.19
5.4.50.0000.04716.45
5.4.40.0070.07316.38
5.4.30.0070.05316.33
5.4.20.0030.09016.45
5.4.10.0070.04316.41
5.4.00.0000.03715.74
5.3.290.0000.04014.70
5.3.280.0000.07714.60
5.3.270.0000.06014.57
5.3.260.0030.04314.75
5.3.250.0000.03314.83
5.3.240.0030.07014.63
5.3.230.0030.03714.61
5.3.220.0070.06314.54
5.3.210.0030.03714.56
5.3.200.0130.05314.57
5.3.190.0000.07314.70
5.3.180.0000.06314.59
5.3.170.0070.04314.41
5.3.160.0000.07714.55
5.3.150.0030.03314.58
5.3.140.0070.06314.51
5.3.130.0070.05014.55
5.3.120.0030.07314.52
5.3.110.0030.06014.68
5.3.100.0000.04314.03
5.3.90.0100.06714.16
5.3.80.0000.03714.08
5.3.70.0000.07713.97
5.3.60.0000.05314.01
5.3.50.0030.03314.09
5.3.40.0030.06714.04
5.3.30.0000.05714.05
5.3.20.0000.07713.77
5.3.10.0030.04313.67
5.3.00.0000.06313.73
5.2.170.0000.05311.06
5.2.160.0030.06011.16
5.2.150.0030.05311.13
5.2.140.0030.02311.04
5.2.130.0000.05711.17
5.2.120.0000.05311.02
5.2.110.0000.04711.02
5.2.100.0000.05311.02
5.2.90.0000.06011.10
5.2.80.0000.06711.16
5.2.70.0000.06010.88
5.2.60.0030.06011.21
5.2.50.0030.06011.08
5.2.40.0030.06011.00
5.2.30.0030.05310.96
5.2.20.0070.05710.89
5.2.10.0000.06011.00
5.2.00.0070.05710.61
5.1.60.0030.05010.06
5.1.50.0070.03710.05
5.1.40.0030.03010.03
5.1.30.0000.04010.29
5.1.20.0000.02710.25
5.1.10.0070.0539.97
5.1.00.0000.05710.12
5.0.50.0070.0439.86
5.0.40.0030.0439.86
5.0.30.0030.0279.86
5.0.20.0030.0409.86
5.0.10.0030.0439.86
5.0.00.0000.0579.86
4.4.90.0000.0309.86
4.4.80.0030.0309.86
4.4.70.0000.0179.86
4.4.60.0000.0309.86
4.4.50.0000.0339.86
4.4.40.0000.0509.86
4.4.30.0070.0279.86
4.4.20.0000.0139.86
4.4.10.0030.0209.86
4.4.00.0000.0539.86
4.3.110.0000.0309.86
4.3.100.0100.0239.86
4.3.90.0000.0209.86
4.3.80.0000.0409.86
4.3.70.0000.0309.86
4.3.60.0000.0339.86
4.3.50.0070.0309.86
4.3.40.0030.0509.86
4.3.30.0000.0379.86
4.3.20.0000.0339.86
4.3.10.0030.0139.86
4.3.00.0030.0309.86

preferences:
55.79 ms | 400 KiB | 5 Q