3v4l.org

run code in 300+ PHP versions simultaneously
<?php $page_access = array( 'index' => array('1', '2', '3'), 'users' => array('4', '5', '6') ); function level_access($page){ global $page_access; if (array_key_exists($page, $page_access)) { echo "yes"; } else { echo "no"; } } level_access('index'); function level_access2($page){ global $page_access; if (isset($page_access[$page])) { echo "yes"; } else { echo "no"; } } level_access2('index');

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.0130.00318.43
8.3.50.0040.01118.30
8.3.40.0080.00818.63
8.3.30.0040.01118.55
8.3.20.0060.00319.39
8.3.10.0080.00021.73
8.3.00.0040.00420.71
8.2.180.0000.01418.29
8.2.170.0070.00722.96
8.2.160.0070.00722.09
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0040.00419.77
8.2.120.0000.00826.35
8.2.110.0030.00622.21
8.2.100.0110.00317.84
8.2.90.0040.00417.63
8.2.80.0030.00518.86
8.2.70.0080.00017.75
8.2.60.0030.00517.50
8.2.50.0030.00517.75
8.2.40.0080.00020.42
8.2.30.0040.00418.06
8.2.20.0000.00817.98
8.2.10.0000.00818.00
8.2.00.0090.00017.59
8.1.280.0140.00325.92
8.1.270.0060.00322.23
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0000.00919.28
8.1.230.0060.00619.10
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0080.00317.23
8.1.190.0000.00917.10
8.1.180.0080.00018.10
8.1.170.0040.00418.41
8.1.160.0050.00218.82
8.1.150.0080.00018.92
8.1.140.0030.00322.02
8.1.130.0070.00020.22
8.1.120.0060.00317.37
8.1.110.0050.00317.38
8.1.100.0040.00717.42
8.1.90.0060.00317.38
8.1.80.0000.00717.44
8.1.70.0040.00417.29
8.1.60.0060.00317.59
8.1.50.0050.00317.53
8.1.40.0040.00417.38
8.1.30.0110.00017.72
8.1.20.0000.00717.71
8.1.10.0090.00017.50
8.1.00.0000.00817.52
8.0.300.0050.00218.77
8.0.290.0000.00916.75
8.0.280.0030.00318.52
8.0.270.0070.00017.22
8.0.260.0000.00718.31
8.0.250.0050.00216.93
8.0.240.0070.00016.91
8.0.230.0000.00716.81
8.0.220.0060.00316.84
8.0.210.0000.00816.86
8.0.200.0080.00016.80
8.0.190.0030.00616.89
8.0.180.0000.00716.69
8.0.170.0060.00316.87
8.0.160.0070.00016.90
8.0.150.0030.00616.75
8.0.140.0040.00416.75
8.0.130.0000.00613.29
8.0.120.0000.00716.66
8.0.110.0000.00716.84
8.0.100.0040.00416.82
8.0.90.0070.00016.89
8.0.80.0060.01216.86
8.0.70.0050.00316.61
8.0.60.0050.00316.73
8.0.50.0040.00416.95
8.0.30.0030.01316.97
8.0.20.0070.01317.40
8.0.10.0030.00316.80
8.0.00.0140.00316.92
7.4.330.0000.00615.55
7.4.320.0030.00316.50
7.4.300.0070.00016.51
7.4.290.0070.00016.64
7.4.280.0070.00016.48
7.4.270.0030.00316.50
7.4.260.0000.00716.59
7.4.250.0040.00416.45
7.4.240.0050.00316.65
7.4.230.0000.00716.63
7.4.220.0080.00016.42
7.4.210.0030.01416.63
7.4.200.0000.00716.70
7.4.160.0080.00816.51
7.4.140.0100.01117.86
7.4.130.0150.00416.73
7.4.120.0110.00716.51
7.4.110.0130.01016.75
7.4.100.0100.01016.53
7.4.90.0130.01016.41
7.4.80.0150.00319.39
7.4.70.0030.01316.57
7.4.60.0030.01316.25
7.4.50.0120.00316.54
7.4.40.0100.00616.42
7.4.00.0110.00715.05
7.3.330.0050.00013.23
7.3.320.0050.00013.14
7.3.310.0060.00316.17
7.3.300.0000.00716.15
7.3.290.0070.00016.16
7.3.280.0110.00716.29
7.3.260.0080.01116.39
7.3.240.0130.00516.32
7.3.230.0070.01016.29
7.3.210.0180.00316.35
7.3.200.0150.00616.11
7.3.190.0130.01016.59
7.3.180.0080.01116.16
7.3.170.0110.00716.48
7.3.160.0130.00316.23
7.3.10.0050.00516.88
7.3.00.0070.00716.79
7.2.330.0060.01116.34
7.2.320.0040.01416.75
7.2.310.0100.00616.29
7.2.300.0060.00916.29
7.2.290.0160.00016.56
7.2.130.0070.00716.92
7.2.120.0040.01116.94
7.2.110.0820.00515.57
7.2.100.0120.00615.64
7.2.90.0060.01015.63
7.2.80.0250.00615.62
7.2.70.0120.00515.79
7.2.60.0090.00815.82
7.2.50.0500.00515.76
7.2.40.0570.00815.89
7.2.30.0250.00715.85
7.2.20.0740.00515.83
7.2.10.0240.01215.81
7.2.00.0080.00615.93
7.1.250.0030.00715.59
7.1.230.0720.01213.91
7.1.220.0760.00513.96
7.1.210.0270.00613.67
7.1.200.0110.00513.76
7.1.190.1100.00613.90
7.1.180.1120.00313.48
7.1.170.0160.00313.66
7.1.160.0090.00513.99
7.1.150.0590.01513.79
7.1.140.0110.00713.72
7.1.130.0490.00613.83
7.1.120.0080.00813.84
7.1.110.0240.00613.82
7.1.100.0110.00713.89
7.1.90.0080.00813.71
7.1.80.0110.00813.63
7.1.70.0600.00613.67
7.1.60.0310.01031.50
7.1.50.0270.01231.79
7.1.40.0240.01531.77
7.1.30.2000.00731.85
7.1.20.0300.00931.62
7.1.10.1360.00313.71
7.1.00.0160.00313.80
5.6.380.0130.00414.22

preferences:
53.7 ms | 400 KiB | 5 Q