3v4l.org

run code in 300+ PHP versions simultaneously
<?php $browser_list = ["test"]; $template_directory = "test"; function getTemplateProperties() { global $browser_list; global $template_directory; $data = '{ "data": { "template_folder": "templ", "browsers": [ {"name": "Chrome"}, {"name": "iOS"}, {"name":"Android"} ] }'; $json_data = json_decode(file_get_contents("properties.map"), true); $browser_list=$json_data["data"]["browsers"]; print_r($browser_list); $template_directory=$json_data["data"]["template_folder"]; print_r($template_directory); } getTemplateProperties(); print_r( $browser_list); // outputs 15 echo $template_directory; ?>

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.0110.00416.63
8.3.50.0110.00722.92
8.3.40.0040.01518.93
8.3.30.0040.01119.27
8.3.20.0000.00720.11
8.3.10.0040.00423.56
8.3.00.0040.00419.38
8.2.180.0130.00617.13
8.2.170.0110.00322.96
8.2.160.0100.00320.39
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0060.00926.16
8.2.120.0000.00720.92
8.2.110.0040.00420.38
8.2.100.0110.00018.34
8.2.90.0100.00019.29
8.2.80.0080.00017.97
8.2.70.0030.00717.63
8.2.60.0000.01217.93
8.2.50.0000.01018.07
8.2.40.0040.00418.24
8.2.30.0060.00318.04
8.2.20.0060.00317.77
8.2.10.0040.00418.11
8.2.00.0040.00417.77
8.1.280.0060.01225.92
8.1.270.0040.00423.84
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0030.00723.97
8.1.230.0040.00819.15
8.1.220.0040.00417.78
8.1.210.0030.00618.77
8.1.200.0070.00317.23
8.1.190.0080.00017.23
8.1.180.0050.00318.10
8.1.170.0040.00418.48
8.1.160.0050.00221.90
8.1.150.0000.00718.79
8.1.140.0040.00417.49
8.1.130.0040.00417.74
8.1.120.0040.00317.46
8.1.110.0070.00017.45
8.1.100.0030.00617.34
8.1.90.0030.00317.43
8.1.80.0070.00017.41
8.1.70.0080.00017.40
8.1.60.0000.00917.59
8.1.50.0000.00817.59
8.1.40.0040.00417.55
8.1.30.0040.00417.63
8.1.20.0040.00417.71
8.1.10.0030.00517.61
8.1.00.0040.00417.53
8.0.300.0080.00018.77
8.0.290.0040.00416.88
8.0.280.0060.00318.49
8.0.270.0030.00317.29
8.0.260.0040.00417.28
8.0.250.0040.00417.08
8.0.240.0030.00617.06
8.0.230.0000.00916.92
8.0.220.0030.00317.00
8.0.210.0070.00017.01
8.0.200.0000.00616.97
8.0.190.0000.00716.89
8.0.180.0000.00717.02
8.0.170.0030.00516.92
8.0.160.0000.00717.09
8.0.150.0070.00017.00
8.0.140.0040.00416.88
8.0.130.0030.00313.47
8.0.120.0030.00516.91
8.0.110.0060.00317.00
8.0.100.0080.00016.95
8.0.90.0000.00716.91
8.0.80.0180.00316.95
8.0.70.0000.00717.06
8.0.60.0030.00516.89
8.0.50.0000.00716.92
8.0.30.0110.00817.25
8.0.20.0120.00617.40
8.0.10.0040.00416.86
8.0.00.0060.01216.80
7.4.330.0060.00015.03
7.4.320.0070.00016.34
7.4.300.0070.00016.54
7.4.290.0070.00016.63
7.4.280.0040.00416.55
7.4.270.0070.00316.56
7.4.260.0030.00316.50
7.4.250.0000.00716.55
7.4.240.0030.00416.59
7.4.230.0070.00016.45
7.4.220.0070.01016.65
7.4.210.0000.01416.58
7.4.200.0070.00016.53
7.4.160.0060.01016.51
7.4.150.0030.01617.40
7.4.140.0130.00817.86
7.4.130.0070.01016.63
7.4.120.0070.01016.42
7.4.110.0110.00716.47
7.4.100.0150.00316.46
7.4.90.0140.00316.55
7.4.80.0070.01019.39
7.4.70.0110.00816.41
7.4.60.0110.00616.46
7.4.50.0000.00816.68
7.4.40.0060.01116.43
7.4.30.0200.00016.45
7.4.00.0040.01115.13
7.3.330.0050.00013.46
7.3.320.0000.00713.30
7.3.310.0000.00716.56
7.3.300.0040.00416.51
7.3.290.0090.00616.49
7.3.280.0080.00816.51
7.3.270.0120.00617.40
7.3.260.0150.00716.40
7.3.250.0080.00816.54
7.3.240.0070.01016.38
7.3.230.0030.01316.44
7.3.210.0160.00316.59
7.3.200.0090.00819.39
7.3.190.0160.00616.48
7.3.180.0100.00616.48
7.3.170.0160.00016.51
7.3.160.0130.00316.48
7.3.10.0110.00416.71
7.3.00.0060.00316.85
7.2.330.0030.01316.71
7.2.320.0070.01016.50
7.2.310.0060.01116.91
7.2.300.0130.00916.68
7.2.290.0140.00316.49
7.2.130.0070.01016.74
7.2.120.0000.00916.93
7.2.110.0140.00616.52
7.2.100.0040.00816.75
7.2.90.0060.00617.06
7.2.80.0060.00616.61
7.2.70.0070.00716.68
7.2.60.0070.00716.83
7.2.50.0070.00716.88
7.2.40.0040.01216.97
7.2.30.0040.01117.09
7.2.20.0040.00817.13
7.2.10.0070.01016.91
7.2.00.0030.01017.99
7.1.250.0040.00415.78
7.1.200.0030.00915.80
7.1.100.0030.00618.05
7.1.70.0080.00017.27
7.1.60.0130.01319.46
7.1.50.0070.01317.05
7.1.00.0000.08022.54
7.0.200.0050.00316.82
7.0.140.0100.07022.21
7.0.60.0030.05319.96
7.0.50.0070.05717.87
7.0.40.0070.08320.31
7.0.30.0200.06720.17
7.0.20.0230.07020.23
7.0.10.0070.05020.25
7.0.00.0100.07320.08
5.6.280.0000.07721.10
5.6.210.0170.06320.64
5.6.200.0130.03718.13
5.6.190.0100.08320.48
5.6.180.0300.06320.46
5.6.170.0200.04320.51
5.6.160.0000.04320.51
5.6.150.0100.07718.16
5.6.140.0070.05018.18
5.6.130.0070.08018.18
5.6.120.0100.04721.12
5.6.110.0100.05721.14
5.6.100.0170.07020.96
5.6.90.0070.04320.97
5.6.80.0070.03720.38
5.5.350.0130.03320.41
5.5.340.0070.07017.99
5.5.330.0070.04320.19
5.5.320.0030.05720.52
5.5.310.0300.07720.24
5.5.300.0100.06717.98
5.5.290.0070.08317.99
5.5.280.0100.08320.65
5.5.270.0030.05320.80
5.5.260.0100.07720.96
5.5.250.0070.07720.66
5.5.240.0030.05020.28
5.4.450.0600.06019.73
5.4.440.0670.05319.61
5.4.430.0770.06319.69
5.4.420.0870.07719.62
5.4.410.0770.06019.50
5.4.400.0570.06019.27
5.4.390.0100.05719.01
5.4.380.0530.05718.59
5.4.370.0430.06018.53
5.4.360.0400.06018.53
5.4.350.0430.05318.64
5.4.340.0200.07318.59
5.4.320.0060.03512.51
5.4.310.0030.04012.51
5.4.300.0100.03212.51
5.4.290.0090.04012.50
5.4.280.0060.03512.40
5.4.270.0060.03612.40
5.4.260.0100.04012.41
5.4.250.0060.03812.41
5.4.240.0050.04812.40
5.4.230.0030.03912.39
5.4.220.0090.03612.39
5.4.210.0050.03812.40
5.4.200.0080.03612.40
5.4.190.0090.03712.39
5.4.180.0050.03712.39
5.4.170.0060.03612.40
5.4.160.0060.03612.39
5.4.150.0080.03412.39
5.4.140.0040.03912.07
5.4.130.0060.03912.07
5.4.120.0090.03312.02
5.4.110.0040.03712.02
5.4.100.0040.03612.02
5.4.90.0040.03812.02
5.4.80.0070.04012.02
5.4.70.0120.02912.01
5.4.60.0090.03212.01
5.4.50.0090.04012.01
5.4.40.0040.03612.00
5.4.30.0040.03712.00
5.4.20.0070.03412.00
5.4.10.0080.03212.00
5.4.00.0070.03511.49
5.3.290.0050.04012.80
5.3.280.0070.03712.71
5.3.270.0060.04112.72
5.3.260.0050.04512.72
5.3.250.0070.03612.72
5.3.240.0080.03512.72
5.3.230.0030.04012.71
5.3.220.0040.03912.68
5.3.210.0030.04212.68
5.3.200.0050.04012.68
5.3.190.0040.03912.68
5.3.180.0050.03612.68
5.3.170.0060.03612.67
5.3.160.0090.03312.68
5.3.150.0040.03912.68
5.3.140.0060.03712.66
5.3.130.0080.03612.66
5.3.120.0070.03812.66
5.3.110.0090.03612.66
5.3.100.0060.03912.12
5.3.90.0040.03812.09
5.3.80.0050.03612.07
5.3.70.0070.03412.07
5.3.60.0070.03512.07
5.3.50.0040.03812.00
5.3.40.0070.03412.00
5.3.30.0070.03311.95
5.3.20.0040.03711.73
5.3.10.0060.03811.70
5.3.00.0050.03811.68
5.2.170.0030.0339.18
5.2.160.0040.0309.18
5.2.150.0040.0329.18
5.2.140.0040.0329.18
5.2.130.0050.0299.14
5.2.120.0050.0299.14
5.2.110.0070.0329.15
5.2.100.0080.0289.14
5.2.90.0040.0309.14
5.2.80.0070.0289.13
5.2.70.0060.0309.13
5.2.60.0040.0339.09
5.2.50.0060.0289.06
5.2.40.0040.0299.04
5.2.30.0040.0309.01
5.2.20.0050.0289.01
5.2.10.0110.0238.92
5.2.00.0030.0308.79
5.1.60.0090.0228.07
5.1.50.0050.0248.07
5.1.40.0050.0288.05
5.1.30.0060.0278.40
5.1.20.0010.0298.42
5.1.10.0060.0248.14
5.1.00.0030.0278.14
5.0.50.0010.0236.62
5.0.40.0030.0206.48
5.0.30.0020.0346.29
5.0.20.0020.0236.27
5.0.10.0040.0216.24
5.0.00.0040.0296.23
4.4.90.0020.0164.78
4.4.80.0020.0164.75
4.4.70.0010.0174.76
4.4.60.0040.0164.76
4.4.50.0050.0134.77
4.4.40.0030.0254.71
4.4.30.0030.0164.76
4.4.20.0020.0174.84
4.4.10.0050.0164.84
4.4.00.0040.0254.76
4.3.110.0040.0154.67
4.3.100.0050.0164.67
4.3.90.0030.0214.63
4.3.80.0040.0234.59
4.3.70.0010.0164.63
4.3.60.0020.0154.63
4.3.50.0060.0134.63
4.3.40.0000.0274.54
4.3.30.0010.0173.29
4.3.20.0000.0173.26
4.3.10.0020.0213.22
4.3.00.0100.0237.72

preferences:
51.24 ms | 401 KiB | 5 Q