3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tpl = "The side bar{l:{khalid}} s a Cheatsheet,{l:{test}} full Reference, and Help. You can also Save & Share with the Community, and {{kaitbellahs}}view patterns you{{eu mesmo}} create or favorite in My Patterns. Global #kha; print #kha; Global #main; print #main-['kha']; Global #main; print #main-['kha']; Global #main; print #main-['kha']; Global #kha1; print #1kha; Global #1kha; print #kha1; <!DOCTYPE html> <html <?php if( <?php GLOBAL #main;print #main->conf['amp']; ?> ){ print \"amp\"; } ?> lang=\" <?php GLOBAL #main;print #main->lng['lng']; ?> \"> <head> Explore results with the Tools below. Replace & List output custom results. Details lists capture groups. Explain d"; //$globals = array(); preg_replace("/if\( \<\?php GLOBAL[.*?]\;print+/im", "hhh", $tpl); $globals = array_unique(array_map("StrToLower", $globals[0])); var_dump($globals);

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.0150.00018.67
8.3.50.0070.00716.38
8.3.40.0090.00618.77
8.3.30.0110.01119.00
8.3.20.0080.00018.98
8.3.10.0040.00420.86
8.3.00.0080.00017.92
8.2.180.0190.00017.00
8.2.170.0040.01122.96
8.2.160.0080.00819.33
8.2.150.0040.00425.66
8.2.140.0050.00324.66
8.2.130.0000.00719.83
8.2.120.0040.00426.35
8.2.110.0070.00320.90
8.2.100.0060.00618.09
8.2.90.0040.00418.15
8.2.80.0040.00419.17
8.2.70.0000.00817.80
8.2.60.0050.00217.80
8.2.50.0090.00018.10
8.2.40.0000.00821.26
8.2.30.0070.00019.38
8.2.20.0070.00018.02
8.2.10.0000.00818.08
8.2.00.0030.00319.34
8.1.280.0120.00625.92
8.1.270.0040.00422.08
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0090.00023.96
8.1.230.0120.00020.92
8.1.220.0030.00617.74
8.1.210.0040.00418.91
8.1.200.0080.00417.36
8.1.190.0050.00617.48
8.1.180.0000.00818.10
8.1.170.0030.00518.66
8.1.160.0070.00018.86
8.1.150.0000.00818.86
8.1.140.0000.00817.60
8.1.130.0000.00819.01
8.1.120.0000.00717.58
8.1.110.0040.00417.46
8.1.100.0000.00717.56
8.1.90.0000.00817.50
8.1.80.0040.00417.59
8.1.70.0040.00417.56
8.1.60.0040.00417.61
8.1.50.0030.00617.60
8.1.40.0050.00217.68
8.1.30.0060.00617.68
8.1.20.0030.00617.73
8.1.10.0000.00717.73
8.1.00.0040.00417.65
8.0.300.0070.00319.88
8.0.290.0000.00816.88
8.0.280.0070.00018.46
8.0.270.0030.00317.09
8.0.260.0000.00718.92
8.0.250.0060.00017.12
8.0.240.0060.00317.11
8.0.230.0070.00316.98
8.0.220.0040.00417.02
8.0.210.0000.00717.03
8.0.200.0050.00217.07
8.0.190.0040.00417.11
8.0.180.0040.00417.09
8.0.170.0090.00017.05
8.0.160.0000.00717.02
8.0.150.0070.00016.88
8.0.140.0040.00416.99
8.0.130.0030.00313.48
8.0.120.0000.00717.04
8.0.110.0030.00517.04
8.0.100.0030.00517.09
8.0.90.0040.00416.95
8.0.80.0080.01317.02
8.0.70.0050.00316.88
8.0.60.0000.00716.96
8.0.50.0000.00816.86
8.0.30.0060.01217.25
8.0.20.0090.00917.42
8.0.10.0040.00417.02
8.0.00.0110.01117.13
7.4.330.0030.00315.55
7.4.320.0030.00316.55
7.4.300.0030.00316.71
7.4.290.0040.00416.67
7.4.280.0040.00416.70
7.4.270.0050.00516.64
7.4.260.0040.00416.66
7.4.250.0030.00516.61
7.4.240.0070.00016.69
7.4.230.0040.00416.58
7.4.220.0040.00416.79
7.4.210.0050.01116.68
7.4.200.0070.00016.83
7.4.160.0050.01116.74
7.4.140.0120.01217.86
7.4.130.0070.01016.82
7.4.120.0090.00816.68
7.4.110.0140.00616.61
7.4.100.0070.01016.64
7.4.90.0140.00916.69
7.4.80.0140.00419.39
7.4.70.0060.01016.64
7.4.60.0090.01216.69
7.4.50.0120.00316.51
7.4.40.0110.00816.72
7.4.00.0070.00414.98
7.3.330.0000.00513.34
7.3.320.0030.00213.21
7.3.310.0000.00716.51
7.3.300.0070.00016.33
7.3.290.0000.00716.44
7.3.280.0070.00916.43
7.3.260.0100.00916.45
7.3.240.0090.00816.47
7.3.230.0100.00716.59
7.3.210.0140.00316.41
7.3.200.0110.00816.52
7.3.190.0100.00616.65
7.3.180.0080.00816.35
7.3.170.0100.00716.48
7.3.160.0060.01616.55
7.2.330.0150.00916.69
7.2.320.0140.00916.84
7.2.310.0070.01016.71
7.2.300.0030.01716.50
7.2.290.0110.01116.89
7.2.60.2280.01015.21
7.2.50.2430.01015.04
7.2.40.2600.01515.58
7.2.30.2240.01115.40
7.2.20.2290.01015.74
7.2.10.2020.01315.73
7.2.00.2510.00815.59
7.1.200.0060.00815.86
7.1.170.2170.00814.07
7.1.160.2600.01317.05
7.1.150.2230.01617.27
7.1.140.2440.01417.18
7.1.130.2720.01417.29
7.1.120.2920.01517.30
7.1.110.2810.01316.58
7.1.100.2900.01316.55
7.1.90.3400.01116.39
7.1.80.2990.00916.65
7.1.70.2880.01515.42
7.1.60.3210.01433.22
7.1.50.4050.01332.96
7.1.40.4270.01732.88
7.1.30.5040.01632.83
7.1.20.4440.01632.81
7.1.10.3620.01514.90
7.1.00.3740.01415.07

preferences:
35.53 ms | 400 KiB | 5 Q