3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = 'YO_{ 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); echo $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.0070.00718.43
8.3.50.0100.00822.24
8.3.40.0120.00319.00
8.3.30.0030.01019.22
8.3.20.0040.00420.34
8.3.10.0050.00321.78
8.3.00.0040.00422.58
8.2.180.0000.01516.50
8.2.170.0110.00422.96
8.2.160.0170.00321.19
8.2.150.0060.00924.18
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0030.00717.75
8.2.110.0090.00022.23
8.2.100.0000.01118.03
8.2.90.0080.00019.17
8.2.80.0070.00318.05
8.2.70.0080.00017.63
8.2.60.0040.00417.93
8.2.50.0000.00818.07
8.2.40.0060.00318.22
8.2.30.0040.00418.05
8.2.20.0000.00817.77
8.2.10.0040.00417.84
8.2.00.0040.00417.85
8.1.280.0070.00725.92
8.1.270.0040.00422.10
8.1.260.0070.00026.35
8.1.250.0050.00228.09
8.1.240.0030.00623.82
8.1.230.0070.00419.16
8.1.220.0030.00517.78
8.1.210.0040.00418.77
8.1.200.0060.00317.60
8.1.190.0040.00417.66
8.1.180.0060.00318.72
8.1.170.0030.00618.75
8.1.160.0030.00622.05
8.1.150.0000.00718.85
8.1.140.0080.00317.66
8.1.130.0000.00717.79
8.1.120.0050.00217.54
8.1.110.0000.00717.50
8.1.100.0040.00417.55
8.1.90.0000.00717.54
8.1.80.0080.00017.59
8.1.70.0070.00017.52
8.1.60.0050.00217.63
8.1.50.0000.00717.70
8.1.40.0070.00017.70
8.1.30.0000.00817.81
8.1.20.0040.00417.72
8.1.10.0050.00317.66
8.1.00.0080.00017.53
8.0.300.0070.00018.77
8.0.290.0000.00817.05
8.0.280.0040.00418.46
8.0.270.0040.00417.32
8.0.260.0030.00316.97
8.0.250.0000.00717.16
8.0.240.0030.00617.03
8.0.230.0030.00317.14
8.0.220.0070.00016.93
8.0.210.0070.00017.09
8.0.200.0000.00817.11
8.0.190.0040.00416.99
8.0.180.0040.00417.13
8.0.170.0000.00717.09
8.0.160.0000.00717.02
8.0.150.0040.00416.88
8.0.140.0000.00816.89
8.0.130.0000.00613.52
8.0.120.0040.00416.94
8.0.110.0040.00416.89
8.0.100.0040.00417.03
8.0.90.0050.00216.93
8.0.80.0070.01017.00
8.0.70.0000.00816.99
8.0.60.0000.00717.03
8.0.50.0000.00817.06
8.0.30.0050.01417.37
8.0.20.0090.01617.40
8.0.10.0040.00417.05
8.0.00.0100.01017.09
7.4.330.0020.00215.04
7.4.320.0030.00316.75
7.4.300.0000.00716.63
7.4.290.0070.00016.75
7.4.280.0060.00016.78
7.4.270.0000.00716.82
7.4.260.0030.00316.74
7.4.250.0060.00316.69
7.4.240.0020.00516.75
7.4.230.0030.00316.64
7.4.220.0120.00616.66
7.4.210.0110.00616.73
7.4.200.0000.00716.86
7.4.190.0000.00716.61
7.4.160.0070.01016.63
7.4.150.0120.00617.40
7.4.140.0060.01117.86
7.4.130.0110.00616.77
7.4.120.0090.00916.69
7.4.110.0060.01116.71
7.4.100.0090.00916.86
7.4.90.0090.00916.58
7.4.80.0070.01419.39
7.4.70.0030.01416.50
7.4.60.0100.00616.82
7.4.50.0000.00616.77
7.4.40.0000.01022.77
7.4.30.0060.01116.79
7.4.00.0100.00715.16
7.3.330.0050.00213.53
7.3.320.0000.00613.52
7.3.310.0030.00616.38
7.3.300.0070.00016.48
7.3.290.0060.00816.43
7.3.280.0080.00816.47
7.3.270.0090.00917.40
7.3.260.0230.00316.68
7.3.250.0090.00916.63
7.3.240.0060.01216.59
7.3.230.0060.01216.66
7.3.210.0050.01116.68
7.3.200.0100.00716.68
7.3.190.0030.01416.62
7.3.180.0100.00716.64
7.3.170.0070.01416.75
7.3.160.0100.00716.82
7.3.120.0120.00616.19
7.3.110.0020.01316.10
7.3.100.0050.00615.94
7.3.90.0030.00816.06
7.3.80.0050.00816.09
7.3.70.0080.00515.99
7.3.60.0090.00416.04
7.3.50.0070.00816.12
7.3.40.0090.00516.00
7.3.30.0080.00616.15
7.3.20.0050.00717.06
7.3.10.0060.00716.96
7.3.00.0070.00717.02
7.2.330.0110.00816.96
7.2.320.0080.00816.98
7.2.310.0080.00816.81
7.2.300.0090.00816.76
7.2.290.0090.01216.66
7.2.250.0070.01415.34
7.2.240.0070.01116.15
7.2.230.0040.01216.09
7.2.220.0050.00916.00
7.2.210.0080.00516.30
7.2.200.0020.01316.07
7.2.190.0080.00316.18
7.2.180.0050.00616.23
7.2.170.0040.00916.11
7.2.160.0000.01717.15
7.2.150.0000.01117.16
7.2.140.0100.00717.15
7.2.130.0120.00017.15
7.2.120.0130.00317.15
7.2.110.0070.01117.20
7.2.100.0070.00717.15
7.2.90.0040.01117.15
7.2.80.0030.00617.30
7.2.70.0070.00717.15
7.2.60.0030.01017.15
7.2.50.0060.00317.24
7.2.40.0090.00617.17
7.2.30.0000.01217.25
7.2.20.0070.00717.15
7.2.10.0040.01417.15
7.2.00.0070.00818.43
7.1.330.0070.00916.43
7.1.320.0040.01016.62
7.1.310.0070.00816.60
7.1.300.0070.00516.48
7.1.290.0040.00516.47
7.1.280.0000.01516.39
7.1.270.0050.01016.41
7.1.260.0050.00916.56
7.1.250.0030.01017.15
7.1.200.0070.00715.84
7.1.100.0030.00818.60
7.1.70.0060.00917.48
7.1.60.0070.01419.82
7.1.50.0200.00317.26
7.1.00.0100.08022.34
7.0.200.0000.00816.66
7.0.140.0000.07721.97
7.0.60.0100.08020.05
7.0.50.0100.06317.99
7.0.40.0070.05720.15
7.0.30.0270.07020.25
7.0.20.0270.08320.25
7.0.10.0400.07020.14
7.0.00.0070.03720.23
5.6.280.0100.06720.79
5.6.210.0070.03720.53
5.6.200.0130.07318.20
5.6.190.0100.07720.67
5.6.180.3470.04720.50
5.6.170.0400.04720.62
5.6.160.0070.03720.52
5.6.150.0030.08018.23
5.6.140.0030.04318.26
5.6.130.0030.04018.28
5.6.120.0130.07721.02
5.6.110.0070.04021.09
5.6.100.0070.08321.01
5.6.90.0070.04021.10
5.6.80.0100.06320.41
5.6.70.0230.04720.32
5.5.350.0030.06020.50
5.5.340.0000.07017.99
5.5.330.0100.05020.13
5.5.320.0200.04720.20
5.5.310.0200.04320.27
5.5.300.0130.06717.97
5.5.290.0030.07317.95
5.5.280.0070.08320.97
5.5.270.0100.08020.83
5.5.260.0130.06320.86
5.5.250.0030.06720.46
5.5.240.0000.04720.37
5.4.450.0700.05319.59
5.4.440.0700.07019.34
5.4.430.0170.04719.51
5.4.420.0000.06319.52
5.4.410.0070.07319.43
5.4.400.0770.00018.51
5.4.390.0870.00018.56
5.4.380.0300.05018.78
5.4.370.0400.04718.74
5.4.360.0330.05718.80
5.4.350.0270.06018.53
5.4.340.0270.05018.72
5.4.320.0070.04112.50
5.4.310.0040.03912.50
5.4.300.0050.04012.50
5.4.290.0070.04412.49
5.4.280.0100.03212.39
5.4.270.0060.03612.39
5.4.260.0030.05718.95
5.4.250.0130.07319.04
5.4.240.0130.04719.11
5.4.230.0030.05718.94
5.4.220.0270.06018.80
5.4.210.0100.07318.96
5.4.200.0070.05018.75
5.4.190.0170.04718.94
5.4.180.0100.04718.89
5.4.170.0130.04719.09
5.4.160.0130.05318.93
5.4.150.0070.05318.82
5.4.140.0170.04316.39
5.4.130.0270.05016.49
5.4.120.0100.04716.46
5.4.110.0100.07316.75
5.4.100.0070.05016.49
5.4.90.0100.04716.40
5.4.80.0000.05316.34
5.4.70.0070.05016.46
5.4.60.0130.04716.38
5.4.50.0070.05716.37
5.4.40.0100.05716.38
5.4.30.0100.04716.32
5.4.20.0100.06716.50
5.4.10.0100.05716.33
5.4.00.0130.04315.84
5.3.290.0070.04512.80
5.3.280.0170.06314.67
5.3.270.0170.04714.74
5.3.260.0030.06014.78
5.3.250.0100.04714.66
5.3.240.0070.05714.53
5.3.230.0230.03314.56
5.3.220.0070.05014.70
5.3.210.0200.05314.64
5.3.200.0130.04314.56
5.3.190.0030.06014.75
5.3.180.0070.05014.63
5.3.170.0030.05314.69
5.3.160.0030.05314.65
5.3.150.0030.05714.65
5.3.140.0070.05014.64
5.3.130.0130.07014.52
5.3.120.0030.05714.45
5.3.110.0070.07314.53
5.3.100.0100.05713.94
5.3.90.0130.06313.92
5.3.80.0070.05714.10
5.3.70.0130.06314.02
5.3.60.0030.05014.16
5.3.50.0000.05713.93
5.3.40.0030.05713.94
5.3.30.0030.05313.91
5.3.20.0030.05313.80
5.3.10.0070.06313.66
5.3.00.0070.05313.61
5.2.170.0100.03711.15
5.2.160.0100.03711.29
5.2.150.0070.04010.97
5.2.140.0000.04711.05
5.2.130.0030.04011.00
5.2.120.0030.04011.21
5.2.110.0070.04011.01
5.2.100.0000.04310.93
5.2.90.0030.05011.20
5.2.80.0030.05011.02
5.2.70.0100.03711.00
5.2.60.0100.03711.07
5.2.50.0070.04011.02
5.2.40.0100.03310.93
5.2.30.0130.04711.00
5.2.20.0200.03711.07
5.2.10.0000.04010.86
5.2.00.0100.03310.72
5.1.60.0070.03310.08
5.1.50.0030.0379.88
5.1.40.0030.0379.90
5.1.30.0030.03710.23
5.1.20.0000.04010.27
5.1.10.0170.0279.99
5.1.00.0070.05010.13
5.0.50.0030.0408.45
5.0.40.0070.0238.35
5.0.30.0000.0438.13
5.0.20.0030.0308.38
5.0.10.0030.0308.00
5.0.00.0070.0408.25
4.4.90.0030.0237.07
4.4.80.0000.0237.07
4.4.70.0030.0207.07
4.4.60.0000.0237.07
4.4.50.0000.0237.07
4.4.40.0100.0307.07
4.4.30.0000.0237.07
4.4.20.0070.0277.07
4.4.10.0030.0237.07
4.4.00.0100.0277.07
4.3.110.0000.0237.07
4.3.100.0000.0307.07
4.3.90.0070.0277.07
4.3.80.0070.0307.07
4.3.70.0070.0207.07
4.3.60.0030.0277.07
4.3.50.0030.0207.07
4.3.40.0000.0377.07
4.3.30.0000.0277.07
4.3.20.0000.0307.07
4.3.10.0000.0307.07
4.3.00.0170.0179.27

preferences:
53.08 ms | 401 KiB | 5 Q