3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = [ 'labels' => ['Manager','Director'], 'dataset' => [3, 2] ]; $arr = array_combine(['labels','dataset'], array_map(null, $arr)); function setData($userType, $array) { if(!in_array($userType, $array['labels'])){ array_push($array['labels'], $userType); array_push($array['dataset'], 0); } return $array; } foreach(['Manager', 'Trainee', 'Director'] as $type) { $arr = setData($type, $arr); } print_r($arr); die();

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.5.10.0090.01216.71
8.5.00.0080.01220.05
8.4.160.0160.00723.89
8.4.150.0010.00014.05
8.4.140.0140.00817.47
8.4.130.0130.00918.69
8.4.120.0010.00723.79
8.4.110.0090.00818.96
8.4.100.0100.00418.84
8.4.90.0100.01018.53
8.4.80.0140.00717.96
8.4.70.0150.00617.98
8.4.60.0070.01318.98
8.4.50.0140.00718.13
8.4.40.0030.00618.08
8.4.30.0090.00020.65
8.4.20.0150.00618.65
8.4.10.0080.00417.88
8.3.280.0120.00818.32
8.3.270.0120.00816.65
8.3.260.0120.00716.82
8.3.250.0130.00719.09
8.3.240.0090.00917.25
8.3.230.0060.00316.96
8.3.220.0060.00117.14
8.3.210.0100.00516.85
8.3.200.0060.00316.88
8.3.190.0110.00717.20
8.3.180.0080.00216.48
8.3.170.0120.00817.17
8.3.160.0090.00916.72
8.3.150.0110.00716.59
8.3.140.0040.00417.42
8.3.130.0080.00018.38
8.3.120.0060.00319.22
8.3.110.0050.00316.85
8.3.100.0060.00316.47
8.3.90.0080.00326.77
8.3.80.0060.00318.45
8.3.70.0130.00716.63
8.3.60.0140.00416.88
8.3.50.0100.00821.96
8.3.40.0070.00718.89
8.3.30.0070.00718.97
8.3.20.0000.00723.67
8.3.10.0070.00021.92
8.3.00.0000.00823.42
8.2.290.0130.00620.36
8.2.280.0070.00218.45
8.2.270.0060.01217.40
8.2.260.0140.00316.63
8.2.250.0080.00016.76
8.2.240.0030.00618.34
8.2.230.0040.00420.94
8.2.220.0080.00024.06
8.2.210.0070.00726.77
8.2.200.0060.00316.88
8.2.190.0170.00316.58
8.2.180.0160.00616.63
8.2.170.0080.00822.96
8.2.160.0070.00722.26
8.2.150.0060.00324.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0070.00721.13
8.2.110.0070.00319.30
8.2.100.0060.00618.03
8.2.90.0050.00317.97
8.2.80.0060.00617.97
8.2.70.0030.00618.05
8.2.60.0000.00818.34
8.2.50.0000.00818.10
8.2.40.0000.00919.43
8.2.30.0000.00818.21
8.2.20.0040.00418.09
8.2.10.0040.00419.33
8.2.00.0000.00719.22
8.1.330.0120.00721.63
8.1.320.0110.00815.98
8.1.310.0180.00416.36
8.1.300.0040.00420.25
8.1.290.0070.00418.88
8.1.280.0070.01425.92
8.1.270.0040.00422.05
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0100.00021.86
8.1.230.0120.00020.89
8.1.220.0030.00517.78
8.1.210.0000.00818.77
8.1.200.0030.00617.25
8.1.190.0030.00517.36
8.1.180.0000.00918.10
8.1.170.0080.00018.50
8.1.160.0000.00718.89
8.1.150.0040.00418.90
8.1.140.0040.00420.83
8.1.130.0050.00319.11
8.1.120.0000.00717.40
8.1.110.0050.00317.52
8.1.100.0050.00317.45
8.1.90.0040.00417.48
8.1.80.0040.00417.52
8.1.70.0000.00717.48
8.1.60.0030.00617.58
8.1.50.0020.00517.49
8.1.40.0030.00617.57
8.1.30.0040.00417.67
8.1.20.0000.00917.67
8.1.10.0040.00417.65
8.1.00.0040.00417.55
8.0.300.0070.00019.86
8.0.290.0000.00816.75
8.0.280.0000.00818.38
8.0.270.0000.00817.20
8.0.260.0000.00616.89
8.0.250.0030.00317.01
8.0.240.0040.00417.02
8.0.230.0020.00517.05
8.0.220.0080.00016.83
8.0.210.0030.00516.97
8.0.200.0030.00316.89
8.0.190.0070.00017.04
8.0.180.0000.00716.96
8.0.170.0000.00816.99
8.0.160.0000.00816.88
8.0.150.0050.00217.00
8.0.140.0000.00816.81
8.0.130.0000.00613.43
8.0.120.0040.00416.79
8.0.110.0030.00316.76
8.0.100.0040.00416.81
8.0.90.0080.00016.81
8.0.80.0030.01916.93
8.0.70.0000.00716.99
8.0.60.0070.00016.92
8.0.50.0000.00817.02
8.0.30.0120.00617.13
8.0.20.0100.01617.13
8.0.10.0050.00217.07
8.0.00.0130.00716.77
7.4.330.0020.00215.55
7.4.320.0030.00316.62
7.4.300.0060.00016.51
7.4.290.0050.00316.50
7.4.280.0080.00016.41
7.4.270.0000.00716.52
7.4.260.0000.00513.23
7.4.250.0030.00316.49
7.4.240.0040.00416.57
7.4.230.0080.00016.51
7.4.220.0030.00316.42
7.4.210.0090.00716.60
7.4.200.0030.00316.59
7.4.140.0060.01817.86
7.4.130.0180.00316.45
7.4.120.0090.01316.55
7.4.110.0120.00616.66
7.4.100.0120.00416.46
7.4.90.0150.00316.50
7.4.80.0060.01219.39
7.4.70.0110.00716.59
7.4.60.0140.00416.44
7.4.50.0030.01216.64
7.4.40.0120.00916.60
7.4.00.0100.00515.05
7.3.330.0000.00716.19
7.3.320.0030.00313.45
7.3.310.0000.00716.48
7.3.300.0000.00716.44
7.3.290.0000.00716.48
7.3.280.0000.01616.47
7.3.260.0080.01116.47
7.3.240.0080.01016.53
7.3.230.0070.01016.45
7.3.210.0140.00316.39
7.3.200.0110.00516.41
7.3.190.0110.01016.54
7.3.180.0280.00616.42
7.3.170.0110.00716.29
7.3.160.0110.01216.53
7.3.120.0070.01015.09
7.3.110.0100.00614.95
7.3.100.0000.01514.82
7.3.90.0030.00714.64
7.3.80.0070.00714.91
7.3.70.0100.00714.91
7.3.60.0050.00914.75
7.3.50.0030.01214.67
7.3.40.0050.00714.76
7.3.30.0110.00414.83
7.3.20.0070.00516.74
7.3.10.0060.00616.68
7.3.00.0070.00816.73
7.2.330.0090.00916.82
7.2.320.0070.01416.79
7.2.310.0160.00616.73
7.2.300.0120.00416.49
7.2.290.0080.00916.51
7.2.250.0110.00715.37
7.2.240.0030.01615.28
7.2.230.0080.01115.30
7.2.220.0030.01315.11
7.2.210.0070.01115.12
7.2.200.0060.00714.99
7.2.190.0030.01115.11
7.2.180.0030.01314.92
7.2.170.0040.00915.19
7.2.160.0060.00614.90
7.2.150.0110.00417.02
7.2.140.0080.00816.92
7.2.130.0060.00616.92
7.2.120.0030.00916.75
7.2.110.0060.00616.80
7.2.100.0110.00416.88
7.2.90.0030.01017.05
7.2.80.0120.00016.66
7.2.70.0080.00416.89
7.2.60.0040.01116.86
7.2.50.0060.00616.79
7.2.40.0080.00816.51
7.2.30.0040.00816.85
7.2.20.0090.00316.93
7.2.10.0030.01016.70
7.2.00.0030.01316.87
7.1.330.0030.01015.76
7.1.320.0030.00915.48
7.1.310.0060.00615.71
7.1.300.0070.00915.83
7.1.290.0100.00715.89
7.1.280.0030.01015.75
7.1.270.0040.00915.83
7.1.260.0080.00515.72
7.1.250.0030.00815.45

preferences:
168.9 ms | 403 KiB | 5 Q