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); 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.0140.00718.30
8.3.50.0100.01222.05
8.3.40.0190.00319.10
8.3.30.0110.00419.15
8.3.20.0030.00620.34
8.3.10.0040.00422.05
8.3.00.0140.00422.45
8.2.180.0060.01216.60
8.2.170.0070.00722.96
8.2.160.0070.00721.24
8.2.150.0050.00324.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0070.00417.63
8.2.110.0000.00922.37
8.2.100.0040.00819.70
8.2.90.0090.00019.30
8.2.80.0040.00418.04
8.2.70.0030.00517.72
8.2.60.0030.00617.93
8.2.50.0060.00318.07
8.2.40.0030.00518.34
8.2.30.0040.00418.17
8.2.20.0080.00017.89
8.2.10.0000.00818.10
8.2.00.0030.00617.99
8.1.280.0070.00725.92
8.1.270.0000.00822.13
8.1.260.0040.00426.35
8.1.250.0030.00628.09
8.1.240.0000.00923.61
8.1.230.0080.00319.15
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0070.00317.48
8.1.190.0040.00417.66
8.1.180.0080.00018.73
8.1.170.0030.00518.77
8.1.160.0000.00721.99
8.1.150.0020.00518.84
8.1.140.0070.00417.68
8.1.130.0000.00717.71
8.1.120.0030.00517.54
8.1.110.0000.00717.51
8.1.100.0030.00317.50
8.1.90.0000.00717.61
8.1.80.0000.00717.62
8.1.70.0000.00717.57
8.1.60.0040.00417.76
8.1.50.0070.00017.57
8.1.40.0000.00817.61
8.1.30.0030.00617.63
8.1.20.0000.00817.81
8.1.10.0000.00817.78
8.1.00.0000.00717.64
8.0.300.0020.00518.77
8.0.290.0030.00317.04
8.0.280.0040.00418.46
8.0.270.0040.00417.21
8.0.260.0060.00017.03
8.0.250.0070.00017.17
8.0.240.0100.00017.14
8.0.230.0050.00216.99
8.0.220.0080.00017.04
8.0.210.0030.00316.94
8.0.200.0040.00417.04
8.0.190.0070.00017.01
8.0.180.0080.00017.08
8.0.170.0030.00616.97
8.0.160.0050.00217.05
8.0.150.0090.00016.86
8.0.140.0090.00017.07
8.0.130.0000.00613.50
8.0.120.0030.00517.13
8.0.110.0040.00416.87
8.0.100.0040.00416.95
8.0.90.0040.00417.01
8.0.80.0030.01217.05
8.0.70.0020.00517.05
8.0.60.0040.00416.95
8.0.50.0030.00516.83
8.0.30.0100.01217.46
8.0.20.0100.00817.55
8.0.10.0040.00417.04
8.0.00.0080.01316.95
7.4.330.0030.00315.11
7.4.320.0060.00016.84
7.4.300.0000.00616.74
7.4.290.0070.00016.85
7.4.280.0000.00716.70
7.4.270.0030.00316.75
7.4.260.0080.00016.80
7.4.250.0080.00016.68
7.4.240.0010.00616.71
7.4.230.0000.00716.53
7.4.220.0160.01016.69
7.4.210.0040.01116.70
7.4.200.0030.00316.93
7.4.190.0030.00316.97
7.4.160.0080.00816.62
7.4.150.0120.00617.40
7.4.140.0050.01417.86
7.4.130.0060.01116.66
7.4.120.0050.01216.65
7.4.110.0060.01216.76
7.4.100.0030.01416.59
7.4.90.0060.01216.66
7.4.80.0060.01219.39
7.4.70.0170.00316.76
7.4.60.0100.00616.68
7.4.50.0050.00316.85
7.4.40.0070.00722.77
7.4.30.0130.00516.70
7.4.00.0100.00714.73
7.3.330.0030.00313.37
7.3.320.0000.00613.46
7.3.310.0090.00016.51
7.3.300.0000.00616.39
7.3.290.0030.01616.40
7.3.280.0090.00716.46
7.3.270.0120.00617.40
7.3.260.0160.00916.71
7.3.250.0110.01016.63
7.3.240.0120.00816.61
7.3.230.0040.01616.93
7.3.210.0070.01016.80
7.3.200.0060.01019.39
7.3.190.0120.00616.55
7.3.180.0040.01216.41
7.3.170.0100.01116.63
7.3.160.0120.00416.70
7.3.120.0040.01215.21
7.2.330.0100.01016.94
7.2.320.0120.00616.86
7.2.310.0070.01016.99
7.2.300.0110.00516.69
7.2.290.0100.00716.66
7.1.70.0080.00317.39
7.1.60.0030.00817.51
7.1.50.0080.00416.89
7.1.40.0000.01116.99
7.1.30.0040.00817.17
7.1.20.0030.00917.09
7.1.10.0030.00516.68
7.1.00.0000.01117.17
7.0.200.0070.00416.75
7.0.190.0030.00516.83
7.0.180.0040.00816.63
7.0.170.0050.00316.63
7.0.160.0020.00516.63
7.0.150.0040.00416.63
7.0.140.0030.00616.69
7.0.130.0080.00516.85
7.0.120.0000.01016.88
7.0.110.0040.00416.63
7.0.100.0070.00016.63
7.0.90.0070.00316.63
7.0.80.0040.00816.63
7.0.70.0080.00016.63
7.0.60.0000.00716.63
7.0.50.0000.00816.63
7.0.40.0040.00416.63
7.0.30.0000.00916.63
7.0.20.0000.01116.63
7.0.10.0060.00616.63
7.0.00.0000.01116.63
5.6.300.0030.03920.92
5.6.290.0030.05120.82
5.6.280.0030.04220.79
5.6.270.0100.06520.89
5.6.260.0030.04220.88
5.6.250.0060.04220.97
5.6.240.0040.04620.95
5.6.230.0030.04020.86
5.6.220.0100.03320.77
5.6.210.0030.04420.96
5.6.200.0030.05620.83
5.6.190.0030.04920.93
5.6.180.0070.03820.84
5.6.170.0000.04820.96
5.6.160.0070.04021.04
5.6.150.0030.04620.79
5.6.140.0000.05320.73
5.6.130.0040.06520.99
5.6.120.0060.04220.93
5.6.110.0090.05521.04
5.6.100.0000.07520.73
5.6.90.0060.04221.02
5.6.80.0100.04120.33
5.6.70.0150.03720.23
5.6.60.0070.04720.32
5.6.50.0030.04520.37
5.6.40.0070.04020.10
5.6.30.0000.04220.34
5.6.20.0100.05520.37
5.6.10.0070.04720.12
5.6.00.0000.04220.32
5.5.380.0060.03417.55
5.5.370.0030.03817.51
5.5.360.0000.04217.56
5.5.350.0030.04717.54
5.5.340.0030.04617.75
5.5.330.0070.03518.13
5.5.320.0030.03818.09
5.5.310.0000.04418.01
5.5.300.0030.04918.18
5.5.290.0100.06217.75
5.5.280.0000.05018.03
5.5.270.0000.04517.70
5.5.260.0030.04418.05
5.5.250.0000.04417.68
5.5.240.0030.03817.09
5.5.230.0070.03717.38
5.5.220.0070.05517.46
5.5.210.0030.03917.08
5.5.200.0030.03717.35
5.5.190.0000.04317.47
5.5.180.0030.04817.54
5.5.160.0070.03917.45
5.5.150.0000.04217.44
5.5.140.0030.03817.34
5.5.130.0030.08417.38
5.5.120.0070.03617.44
5.5.110.0030.04117.18
5.5.100.0000.04017.29
5.5.90.0000.07917.34
5.5.80.0000.04717.28
5.5.70.0060.03917.35
5.5.60.0000.04017.32
5.5.50.0000.03817.07
5.5.40.0030.08217.37
5.5.30.0030.05217.33
5.5.20.0030.04317.10
5.5.10.0000.04117.10
5.5.00.0030.04617.29
5.4.450.0030.04319.46
5.4.440.0140.07819.55
5.4.430.0060.03919.21
5.4.420.0030.04319.48
5.4.410.0030.03819.13
5.4.400.0000.04118.95
5.4.390.0030.03819.20
5.4.380.0030.04618.89
5.4.370.0000.03919.15
5.4.360.0030.04319.07
5.4.350.0030.03819.07
5.4.340.0030.04519.23
5.4.320.0030.04219.16
5.4.310.0030.04118.98
5.4.300.0030.03919.06
5.4.290.0000.07419.16
5.4.280.0160.03219.09
5.4.270.0000.03919.11
5.4.260.0000.04619.13
5.4.250.0030.04518.91
5.4.240.0000.04518.97
5.4.230.0130.03618.97
5.4.220.0070.04819.06
5.4.210.0030.07618.89
5.4.200.0030.04019.20
5.4.190.0040.04218.96
5.4.180.0030.04419.13
5.4.170.0030.05719.19
5.4.160.0000.04819.16
5.4.150.0110.03519.18
5.4.140.0070.05916.67
5.4.130.0030.03616.63
5.4.120.0070.03616.63
5.4.110.0030.04116.63
5.4.100.0030.04116.75
5.4.90.0030.03416.63
5.4.80.0070.03016.63
5.4.70.0070.03316.73
5.4.60.0030.04416.63
5.4.50.0030.03716.71
5.4.40.0030.03416.66
5.4.30.0030.04116.63
5.4.20.0000.04016.72
5.4.10.0000.04416.63
5.4.00.0030.06116.63
5.3.290.0030.04216.63
5.3.280.0000.04316.63
5.3.270.0030.07416.63
5.3.260.0070.03916.63
5.3.250.0030.06116.63
5.3.240.0070.03716.63
5.3.230.0030.04016.63
5.3.220.0030.03816.63
5.3.210.0040.03516.63
5.3.200.0000.04216.63
5.3.190.0030.03816.63
5.3.180.0070.04516.63
5.3.170.0030.03816.63
5.3.160.0170.04116.63
5.3.150.0170.03516.63
5.3.140.0000.03816.63
5.3.130.0030.03716.63
5.3.120.0070.05416.63
5.3.110.0030.03716.63
5.3.100.0100.05016.63
5.3.90.0030.03516.63
5.3.80.0000.04416.63
5.3.70.0070.03016.63
5.3.60.0030.08516.63
5.3.50.0000.04316.63
5.3.40.0000.03916.63
5.3.30.0030.03716.63
5.3.20.0030.03816.63
5.3.10.0000.03716.63
5.3.00.0030.04116.63

preferences:
42.95 ms | 401 KiB | 5 Q