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. RegExr v3 was created by gskinner.com, and is proudly hosted by Media Temple <?php Global $kha; print $kha; ?> <?php Global $main; print $main-['kha']; ?><?php Global $kha1; print $1kha; ?><?php Global $1kha; print $kha1; ?> <!DOCTYPE html> <html <?php if(#main->conf['amp'] ){ print \"amp\"; } ?> <?php if(#main->conf['amp']=<?php GLOBAL #main;print #main->conf['kha']; ?> ){ print \"amp\"; } ?>lang=\" <?php if(#main->conf['amp']==<?php GLOBAL #main;print #main->conf['kha']; ?> ){ print \"amp\"; } ?>lang=\" <?php if(#main->conf['amp']!=<?php GLOBAL #main;print #main->conf['kha']; ?> ){ print \"amp\"; } ?>lang=\" <?php if(#main->conf['amp']<<?php GLOBAL #main;print #main->conf['kha']; ?> ){ print \"amp\"; } ?>lang=\" <?php if(#main->conf['amp']><?php GLOBAL #main;print #main->conf['kha']; ?> ){ print \"amp\"; } ?>lang=\" <?php GLOBAL #main;print #main->lng['lng']; ?> \"> <!DOCTYPE html> <html <?php if( \$main->conf['amp'] ){ print \"amp\"; } ?> lang=\" <?php GLOBAL \$main;print \$main->lng['lng']; ?> \"> <head> <meta charset=\"utf-8\"/> Explore results with the Tools below. Replace & List output custom results. Details lists capture groups. Explain d"; //$globals = array(); $tpl = preg_replace("/if\( \<\?php GLOBAL.*?\;print (.*?); \?\>+/im", "if(\$1", $tpl); preg_match_all("/global \$(.*?);/im", $tpl, $globals); print "(globals:".var_dump($globals).")"; //$globals = array_unique(array_map("StrToLower", $globals[0])); var_dump($tpl);

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.00618.40
8.3.50.0070.00716.30
8.3.40.0040.01118.85
8.3.30.0150.00018.96
8.3.20.0040.00418.98
8.3.10.0080.00019.20
8.3.00.0080.00017.89
8.2.180.0040.01125.92
8.2.170.0070.00722.96
8.2.160.0080.00619.34
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0000.00819.70
8.2.120.0030.00626.35
8.2.110.0080.00022.30
8.2.100.0070.00719.82
8.2.90.0060.00617.88
8.2.80.0050.00319.03
8.2.70.0000.00818.03
8.2.60.0050.00317.92
8.2.50.0000.00818.10
8.2.40.0000.00821.15
8.2.30.0000.00719.63
8.2.20.0000.00818.19
8.2.10.0080.00018.11
8.2.00.0000.00719.38
8.1.270.0030.00523.78
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0090.00020.59
8.1.230.0040.00717.95
8.1.220.0040.00417.77
8.1.210.0050.00318.77
8.1.200.0000.00817.60
8.1.190.0040.00417.47
8.1.180.0000.00918.10
8.1.170.0040.00418.75
8.1.160.0030.00518.87
8.1.150.0040.00419.02
8.1.140.0070.00017.77
8.1.130.0000.00719.07
8.1.120.0040.00417.70
8.1.110.0030.00617.69
8.1.100.0030.00617.57
8.1.90.0040.00417.63
8.1.80.0030.00517.56
8.1.70.0040.00417.66
8.1.60.0050.00317.64
8.1.50.0080.00017.79
8.1.40.0000.00817.60
8.1.30.0030.00617.73
8.1.20.0030.00617.75
8.1.10.0040.00417.67
8.1.00.0060.00317.61
8.0.300.0040.00418.84
8.0.290.0060.00317.00
8.0.280.0080.00018.52
8.0.270.0070.00017.38
8.0.260.0070.00019.05
8.0.250.0030.00317.20
8.0.240.0040.00417.17
8.0.230.0000.00717.21
8.0.220.0030.00317.00
8.0.210.0000.00717.19
8.0.200.0030.00617.18
8.0.190.0070.00017.25
8.0.180.0070.00017.16
8.0.170.0000.00817.20
8.0.160.0000.00717.07
8.0.150.0040.00317.05
8.0.140.0050.00217.06
8.0.130.0030.00313.51
8.0.120.0030.00517.09
8.0.110.0040.00417.08
8.0.100.0070.00017.14
8.0.90.0030.00717.05
8.0.80.0090.00717.10
8.0.70.0040.00417.21
8.0.60.0040.00417.14
8.0.50.0000.00817.02
8.0.30.0110.00717.19
8.0.20.0120.01317.44
8.0.10.0080.00017.14
8.0.00.0070.01016.99
7.4.330.0000.00715.55
7.4.320.0000.00616.71
7.4.300.0060.00016.81
7.4.290.0000.00716.81
7.4.280.0040.00416.79
7.4.270.0030.00316.71
7.4.260.0030.00316.54
7.4.250.0070.00016.63
7.4.240.0030.00616.66
7.4.230.0000.00716.59
7.4.220.0000.00716.89
7.4.210.0080.01216.84
7.4.200.0040.00416.61
7.4.160.0070.00816.70
7.4.140.0110.00917.86
7.4.130.0070.01716.79
7.4.120.0090.01116.78
7.4.110.0090.00916.73
7.4.100.0100.01016.82
7.4.90.0090.00916.78
7.4.80.0090.01319.39
7.4.70.0040.01316.64
7.4.60.0060.01216.57
7.4.50.0060.00516.68
7.4.40.0120.00816.81
7.4.00.0020.01415.06
7.3.330.0020.00213.46
7.3.320.0030.00313.24
7.3.310.0000.00716.56
7.3.300.0000.00716.59
7.3.290.0000.00716.51
7.3.280.0100.00916.46
7.3.260.0080.01116.67
7.3.240.0080.00916.74
7.3.230.0180.00616.60
7.3.210.0060.01216.50
7.3.200.0100.00616.59
7.3.190.0120.00916.64
7.3.180.0140.00316.57
7.3.170.0100.00616.52
7.3.160.0090.00916.65
7.3.120.0030.01315.24
7.3.110.0060.01215.10
7.3.100.0060.00315.01
7.3.90.0050.00515.25
7.3.80.0070.00415.26
7.3.70.0120.00414.91
7.3.60.0060.01015.27
7.3.50.0070.00715.12
7.3.40.0030.00914.82
7.3.30.0080.00414.96
7.3.20.0070.00416.71
7.3.10.0080.00616.69
7.3.00.0040.01116.72
7.2.330.0060.01317.00
7.2.320.0120.00616.59
7.2.310.0090.00916.85
7.2.300.0110.01016.80
7.2.290.0190.00416.93
7.2.250.0070.01315.39
7.2.240.0100.01015.22
7.2.230.0000.01515.16
7.2.220.0030.00715.23
7.2.210.0030.00915.06
7.2.200.0120.00015.22
7.2.190.0070.00715.19
7.2.180.0080.00815.13
7.2.170.0040.01115.34
7.2.130.0160.00517.06
7.2.120.0020.01216.97
7.2.110.0080.00517.04
7.2.100.0080.00516.75
7.2.90.0100.00817.05
7.2.80.0140.00716.76
7.2.70.0080.01117.08
7.2.60.2970.00816.29
7.2.50.2650.00816.26
7.2.40.2590.00816.47
7.2.30.2680.01316.47
7.2.20.2660.01216.66
7.2.10.2660.00816.49
7.2.00.2770.00916.50
7.1.330.0030.01315.97
7.1.320.0000.01316.12
7.1.310.0040.00816.12
7.1.300.0030.01315.99
7.1.290.0030.00615.75
7.1.280.0030.01015.92
7.1.270.0000.01416.13
7.1.260.0070.01015.96
7.1.250.0100.00315.78
7.1.200.0000.01315.96
7.1.171.0890.01213.82
7.1.160.8530.01317.14
7.1.150.8830.01617.13
7.1.140.8660.01417.20
7.1.130.7450.01217.24
7.1.120.8610.01116.92
7.1.110.8860.01516.26
7.1.100.8110.01016.40
7.1.91.2210.01716.39
7.1.80.7290.01416.24
7.1.70.8370.00915.61
7.1.61.0080.01533.24
7.1.51.1360.01833.24
7.1.41.3290.01632.86
7.1.31.3690.01832.81
7.1.21.2800.01633.08
7.1.11.2900.01315.00
7.1.00.8380.01215.30

preferences:
58 ms | 404 KiB | 6 Q