3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data['menus'] = array( '1' => array( 'Dashboard' => '/LMS/Dashboard', ), '2' => array( 'Notifications' => '/LMS/Notifications', ), '3' => array( 'Clients' => '/LMS/Clients', ), '4' => array( 'Penalties' => '/LMS/Penalties', ), '5' => array( 'Payments' => '/LMS/Payments', ), '6' => array( 'Profit' => '/LMS/Profit', ), '7' => array( 'Income' => '/LMS/Income', ), '8' => array( 'Outcome' => '/LMS/Outcome', ), '9' => array( 'Accounts' => '/LMS/Accounts', ) ); $access = array ( 'pages_id' => array ( 0 => 1, 1 => 2, 2 => 3, 3 => 4, 4 => 8, 5 => 9 ), ); print_r(array_intersect_key($data['menus'], array_flip($access['pages_id'])));

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.0060.00916.25
8.3.60.0070.01418.55
8.3.50.0120.00317.89
8.3.40.0110.00418.45
8.3.30.0000.01418.66
8.3.20.0000.00721.94
8.3.10.0050.00323.52
8.3.00.0000.00720.74
8.2.190.0090.00616.58
8.2.180.0070.01416.50
8.2.170.0150.00322.96
8.2.160.0090.00522.06
8.2.150.0020.00524.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0080.00026.16
8.2.110.0060.00320.47
8.2.100.0080.00417.66
8.2.90.0090.00017.75
8.2.80.0000.00818.64
8.2.70.0030.00517.50
8.2.60.0000.00817.50
8.2.50.0060.00317.55
8.2.40.0040.00419.35
8.2.30.0070.00019.21
8.2.20.0040.00418.15
8.2.10.0000.00719.25
8.2.00.0050.00319.22
8.1.280.0070.00725.92
8.1.270.0080.00022.34
8.1.260.0040.00426.35
8.1.250.0030.00628.09
8.1.240.0040.00421.02
8.1.230.0070.00420.89
8.1.220.0040.00418.57
8.1.210.0000.00718.77
8.1.200.0030.00617.36
8.1.190.0040.00417.35
8.1.180.0020.00718.10
8.1.170.0030.00617.62
8.1.160.0070.00018.90
8.1.150.0020.00518.70
8.1.140.0080.00018.87
8.1.130.0000.00717.38
8.1.120.0050.00217.32
8.1.110.0040.00417.32
8.1.100.0020.00517.36
8.1.90.0040.00417.39
8.1.80.0000.00817.42
8.1.70.0030.00317.40
8.1.60.0080.00017.53
8.1.50.0030.00617.46
8.1.40.0000.00817.42
8.1.30.0040.00417.50
8.1.20.0000.00917.54
8.1.10.0060.00317.45
8.1.00.0000.00717.51
8.0.300.0040.00418.77
8.0.290.0050.00316.63
8.0.280.0000.00718.38
8.0.270.0000.00716.68
8.0.260.0000.00716.77
8.0.250.0000.00716.80
8.0.240.0000.00716.76
8.0.230.0000.00616.84
8.0.220.0050.00216.67
8.0.210.0000.00816.86
8.0.200.0030.00316.89
8.0.190.0030.00316.87
8.0.180.0040.00416.88
8.0.170.0060.00316.80
8.0.160.0040.00416.84
8.0.150.0000.00716.76
8.0.140.0070.00016.79
8.0.130.0000.00513.13
8.0.120.0040.00416.66
8.0.110.0040.00416.71
8.0.100.0040.00416.63
8.0.90.0080.00016.74
8.0.80.0030.01116.86
8.0.70.0050.00316.84
8.0.60.0040.00416.71
8.0.50.0070.00016.89
8.0.30.0000.01617.10
8.0.20.0140.00717.13
8.0.10.0000.00716.80
8.0.00.0120.00916.91
7.4.330.0050.00015.55
7.4.320.0000.00716.47
7.4.300.0040.00416.45
7.4.290.0030.00316.49
7.4.280.0000.00816.51
7.4.270.0000.00616.44
7.4.260.0050.00013.10
7.4.250.0050.00216.27
7.4.240.0070.00016.41
7.4.230.0000.00716.38
7.4.220.0030.00316.47
7.4.210.0080.01216.52
7.4.200.0030.00316.52
7.4.130.0120.00816.35
7.4.120.0140.00516.42
7.4.110.0070.01016.53
7.4.100.0030.01616.51
7.4.90.0070.01016.36
7.4.80.0130.00819.39
7.4.70.0130.00916.61
7.4.60.0090.01316.34
7.4.50.0070.01016.55
7.4.40.0100.00716.38
7.4.00.0040.01115.16
7.3.330.0030.00316.21
7.3.320.0020.00313.19
7.3.310.0030.00316.06
7.3.300.0070.00016.11
7.3.290.0030.00316.21
7.3.280.0080.01116.32
7.3.260.0090.01016.36
7.3.240.0090.00916.39
7.3.230.0140.00316.40
7.3.210.0080.00816.46
7.3.200.0130.00716.57
7.3.190.0100.00916.27
7.3.180.0110.00716.55
7.3.170.0070.01016.46
7.3.160.0120.00916.20
7.3.100.0000.01314.45
7.3.90.0000.01314.83
7.3.80.0080.00614.48
7.3.70.0100.00314.60
7.3.60.0030.01014.59
7.3.50.0060.00914.57
7.3.40.0110.00414.65
7.3.30.0090.00314.69
7.3.20.0070.00714.82
7.3.10.0150.00014.65
7.3.00.0070.00714.36
7.2.330.0070.01016.25
7.2.320.0140.00316.61
7.2.310.0110.00716.61
7.2.300.0040.01816.29
7.2.290.0070.01516.61
7.2.230.0110.00314.73
7.2.220.0100.00314.80
7.2.210.0030.01014.96
7.2.200.0040.01114.48
7.2.190.0100.00614.95
7.2.180.0110.00414.86
7.2.170.0030.01214.68
7.2.160.0080.00814.65
7.2.150.0100.00614.91
7.2.140.0080.01214.98
7.2.130.0100.00614.83
7.2.120.0080.00714.91
7.2.110.0070.00714.55
7.2.100.0090.00614.75
7.2.90.0030.01114.80
7.2.80.0110.00514.85
7.2.70.0060.01114.89
7.2.60.0140.00014.72
7.2.50.0070.00714.79
7.2.40.0040.01014.87
7.2.30.0030.01114.73
7.2.20.0070.00714.93
7.2.10.0290.00615.11
7.2.00.0130.00314.91
7.1.320.0100.00313.80
7.1.310.0040.01113.71
7.1.300.0100.00713.75
7.1.290.0060.00913.84
7.1.280.0070.00713.80
7.1.270.0050.00913.83
7.1.260.0120.00313.77
7.1.250.0060.00913.66

preferences:
73.35 ms | 401 KiB | 5 Q