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(); $tpl = preg_replace("/if\( \<\?php GLOBAL[.*?]\;print+/im", "hhh", $tpl); //$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.70.0200.00316.63
8.3.60.0150.00618.41
8.3.50.0100.00316.65
8.3.40.0160.00018.83
8.3.30.0150.00418.88
8.3.20.0030.00519.09
8.3.10.0040.00420.64
8.3.00.0040.00417.78
8.2.180.0150.00416.50
8.2.170.0110.00422.96
8.2.160.0120.00319.21
8.2.150.0000.00825.66
8.2.140.0040.00424.66
8.2.130.0040.00419.89
8.2.120.0040.00426.35
8.2.110.0080.00319.39
8.2.100.0050.00517.84
8.2.90.0080.00017.60
8.2.80.0080.00018.86
8.2.70.0030.00617.68
8.2.60.0040.00417.80
8.2.50.0000.00818.10
8.2.40.0000.00820.90
8.2.30.0000.00719.35
8.2.20.0000.00718.04
8.2.10.0000.00818.01
8.2.00.0070.00019.46
8.1.280.0180.00025.92
8.1.270.0050.00323.79
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00723.70
8.1.230.0040.00720.87
8.1.220.0060.00318.69
8.1.210.0080.00018.77
8.1.200.0050.00317.35
8.1.190.0030.00617.35
8.1.180.0050.00318.10
8.1.170.0040.00418.65
8.1.160.0040.00418.86
8.1.150.0000.00718.91
8.1.140.0000.00817.71
8.1.130.0000.00719.09
8.1.120.0040.00417.49
8.1.110.0040.00417.45
8.1.100.0030.00317.60
8.1.90.0080.00017.61
8.1.80.0040.00417.46
8.1.70.0040.00417.54
8.1.60.0060.00317.71
8.1.50.0080.00017.58
8.1.40.0030.00517.64
8.1.30.0060.00617.64
8.1.20.0020.00517.70
8.1.10.0040.00417.66
8.1.00.0030.00617.39
8.0.300.0000.00718.77
8.0.290.0060.00316.75
8.0.280.0030.00318.41
8.0.270.0080.00017.15
8.0.260.0040.00419.00
8.0.250.0070.00016.92
8.0.240.0060.00317.00
8.0.230.0050.00516.96
8.0.220.0070.00016.91
8.0.210.0000.00716.98
8.0.200.0030.00316.93
8.0.190.0040.00416.91
8.0.180.0040.00417.04
8.0.170.0040.00416.89
8.0.160.0030.00516.90
8.0.150.0030.00316.88
8.0.140.0040.00416.95
8.0.130.0000.00613.37
8.0.120.0050.00316.96
8.0.110.0030.00516.96
8.0.100.0040.00416.87
8.0.90.0000.00717.08
8.0.80.0090.01016.92
8.0.70.0040.00416.82
8.0.60.0050.00217.03
8.0.50.0040.00416.95
8.0.30.0140.00717.17
8.0.20.0090.01217.40
8.0.10.0000.00717.04
8.0.00.0050.01316.73
7.4.330.0030.00315.55
7.4.320.0000.00616.76
7.4.300.0040.00416.64
7.4.290.0000.00716.59
7.4.280.0040.00416.79
7.4.270.0000.00716.67
7.4.260.0050.00316.54
7.4.250.0030.00316.74
7.4.240.0000.00716.59
7.4.230.0000.00716.54
7.4.220.0050.00316.77
7.4.210.0080.00916.66
7.4.200.0000.00716.84
7.4.160.0080.00916.58
7.4.140.0110.01017.86
7.4.130.0090.00916.55
7.4.120.0050.01216.57
7.4.110.0030.01316.53
7.4.100.0030.01416.80
7.4.90.0090.00916.56
7.4.80.0060.01919.39
7.4.70.0070.01016.73
7.4.60.0070.01016.55
7.4.50.0120.00216.44
7.4.40.0060.01516.79
7.4.00.0090.00915.10
7.3.330.0000.00613.20
7.3.320.0030.00313.04
7.3.310.0070.00016.30
7.3.300.0000.00716.29
7.3.290.0030.00316.25
7.3.280.0100.01116.27
7.3.260.0100.00916.38
7.3.240.0110.00616.34
7.3.230.0100.01416.34
7.3.210.0130.01016.55
7.3.200.0120.00916.36
7.3.190.0110.00516.19
7.3.180.0000.01516.32
7.3.170.0080.00816.57
7.3.160.0100.01016.35
7.3.120.0050.01114.77
7.3.110.0100.00815.01
7.3.100.0050.01015.08
7.3.90.0090.00914.95
7.3.80.0040.00915.02
7.3.70.0020.01114.87
7.3.60.0060.00714.85
7.3.50.0050.01014.91
7.3.40.0020.00714.57
7.3.30.0050.00814.88
7.3.20.0060.01016.62
7.3.10.0030.01016.71
7.3.00.0070.00416.64
7.2.330.0160.00316.58
7.2.320.0120.00416.44
7.2.310.0120.00616.69
7.2.300.0100.00716.75
7.2.290.0130.00316.76
7.2.250.0120.00715.14
7.2.240.0070.01315.02
7.2.230.0060.00815.04
7.2.220.0070.01015.17
7.2.210.0030.01315.05
7.2.200.0050.00815.20
7.2.190.0060.00515.03
7.2.180.0020.01515.01
7.2.170.0030.01215.21
7.2.60.2620.01015.00
7.2.50.2720.01014.85
7.2.40.3150.01215.66
7.2.30.3370.00915.66
7.2.20.3810.01215.46
7.2.10.3210.01315.62
7.2.00.3630.01215.56
7.1.330.0000.01415.76
7.1.320.0060.00915.87
7.1.310.0090.00515.97
7.1.300.0090.00516.05
7.1.290.0060.00615.87
7.1.280.0000.01215.76
7.1.270.0050.00615.92
7.1.260.0060.00515.90
7.1.200.0060.00915.69
7.1.170.2350.00914.20
7.1.160.3370.01317.04
7.1.150.3500.01516.96
7.1.140.3990.01516.85
7.1.130.3390.01417.05
7.1.120.3730.01517.10
7.1.110.3630.01316.44
7.1.100.3200.01116.31
7.1.90.3520.01216.55
7.1.80.3420.01016.14
7.1.70.4150.01215.42
7.1.60.3640.01733.56
7.1.50.5190.01533.20
7.1.40.4290.01832.76
7.1.30.4900.01932.98
7.1.20.5590.01732.87
7.1.10.5550.01214.86
7.1.00.3800.01315.17

preferences:
48.33 ms | 401 KiB | 5 Q