3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = [ 1 => [ [ 'key' => 'fe', 'name' => 'En plantilla a dedicación completa', 'dedication' => self::FULLTIME, 'relationship' => self::EMPLOYEE ], [ 'key' => 'ff', 'name' => 'Freelance a dedicación completa', 'dedication' => self::FULLTIME, 'relationship' => self::FREELANCER ], ], 2 => [ [ 'name' => 'En Plantilla', 'childs' => [ [ 'key' => 'pem', 'name' => 'Mañanas', 'dedication' => self::PARTTIME, 'relationship' => self::EMPLOYEE, 'shiftPreference' => self::MORNING_SHIFT ], [ 'key' => 'pea', 'name' => 'Tardes', 'dedication' => self::PARTTIME, 'relationship' => self::EMPLOYEE, 'shiftPreference' => self::AFTERNOON_SHIFT ], [ 'key' => 'ped', 'name' => 'Indistinto', 'dedication' => self::PARTTIME, 'relationship' => self::EMPLOYEE, 'shiftPreference' => self::DOES_NOT_MATTER ], ], ], [ 'name' => 'Freelance', 'childs' => [ [ 'name' => 'Mañanas', 'childs' => [ [ 'key' => 'pfmm', 'name' => 'Más de 3 horas/día', 'dedication' => self::PARTTIME, 'relationship' => self::FREELANCER, 'shiftPreference' => self::MORNING_SHIFT, 'hoursOfService' => self::MORE_THAN_3H ], [ 'key' => 'pfml', 'name' => 'Menos de 3 horas/día', 'parent' => 8, 'dedication' => self::PARTTIME, 'relationship' => self::FREELANCER, 'shiftPreference' => self::MORNING_SHIFT, 'hoursOfService' => self::LESS_THAN_3H ], ], ], [ 'name' => 'Tardes', 'childs' => [ [ 'key' => 'pfam', 'name' => 'Más de 3 horas/día', 'dedication' => self::PARTTIME, 'relationship' => self::FREELANCER, 'shiftPreference' => self::AFTERNOON_SHIFT, 'hoursOfService' => self::MORE_THAN_3H ], [ 'key' => 'pfal', 'name' => 'Menos de 3 horas/día', 'dedication' => self::PARTTIME, 'relationship' => self::FREELANCER, 'shiftPreference' => self::AFTERNOON_SHIFT, 'hoursOfService' => self::LESS_THAN_3H ], ], ], [ 'name' => 'Indistinto', 'childs' => [ [ 'key' => 'pfdm', 'name' => 'Más de 3 horas/día', 'dedication' => self::PARTTIME, 'relationship' => self::FREELANCER, 'shiftPreference' => self::DOES_NOT_MATTER, 'hoursOfService' => self::MORE_THAN_3H ], [ 'key' => 'pfdl', 'name' => 'Menos de 3 horas/día', 'dedication' => self::PARTTIME, 'relationship' => self::FREELANCER, 'shiftPreference' => self::DOES_NOT_MATTER, 'hoursOfService' => self::LESS_THAN_3H ], ], ], ], ], ], ]; $results = $a[1]; array_walk_recursive($results, function(&$a){ unset($a['dedication'], $a['relationship'], $a['shiftPreference'], $a['hoursOfService']); }); var_dump($results); var_dump($a);

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.0060.01018.43
8.3.50.0110.00721.19
8.3.40.0080.00818.83
8.3.30.0140.00418.80
8.3.20.0080.00020.41
8.3.10.0030.00523.65
8.3.00.0050.00322.45
8.2.180.0150.00618.29
8.2.170.0060.00922.96
8.2.160.0120.00420.60
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0030.00617.75
8.2.110.0000.00920.65
8.2.100.0030.01017.88
8.2.90.0000.00819.17
8.2.80.0060.00317.97
8.2.70.0040.00417.63
8.2.60.0040.00418.05
8.2.50.0090.00018.07
8.2.40.0030.00621.07
8.2.30.0000.00819.97
8.2.20.0080.00017.82
8.2.10.0040.00418.27
8.2.00.0050.00218.11
8.1.280.0140.00725.92
8.1.270.0040.00420.50
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0060.00323.79
8.1.230.0060.00617.42
8.1.220.0070.00317.89
8.1.210.0040.00418.77
8.1.200.0060.00317.38
8.1.190.0080.00017.35
8.1.180.0040.00418.10
8.1.170.0030.00618.71
8.1.160.0040.00422.05
8.1.150.0000.00718.84
8.1.140.0080.00017.34
8.1.130.0060.00317.60
8.1.120.0000.00717.37
8.1.110.0020.00517.54
8.1.100.0000.00717.46
8.1.90.0040.00417.44
8.1.80.0000.00717.47
8.1.70.0080.00017.47
8.1.60.0050.00317.65
8.1.50.0030.00617.57
8.1.40.0050.00317.41
8.1.30.0000.00817.63
8.1.20.0030.00617.68
8.1.10.0000.00817.57
8.1.00.0030.00617.38
8.0.300.0040.00418.77
8.0.290.0040.00417.00
8.0.280.0000.00718.61
8.0.270.0070.00017.31
8.0.260.0030.00318.47
8.0.250.0020.00517.14
8.0.240.0040.00417.10
8.0.230.0000.00717.06
8.0.220.0040.00417.07
8.0.210.0000.00717.00
8.0.200.0030.00317.08
8.0.190.0030.00617.16
8.0.180.0000.00717.04
8.0.170.0030.00717.02
8.0.160.0000.00717.04
8.0.150.0040.00417.11
8.0.140.0000.00716.91
8.0.130.0000.00713.53
8.0.120.0000.00816.91
8.0.110.0040.00417.07
8.0.100.0040.00417.00
8.0.90.0030.00616.84
8.0.80.0090.00616.98
8.0.70.0030.00516.96
8.0.60.0040.00417.05
8.0.50.0070.00017.08
8.0.30.0110.00917.30
8.0.20.0140.00717.40
8.0.10.0050.00317.00
8.0.00.0130.00616.85
7.4.330.0030.00515.08
7.4.320.0040.00416.63
7.4.300.0090.00016.63
7.4.290.0000.00716.52
7.4.280.0000.01116.55
7.4.270.0000.00716.47
7.4.260.0030.00316.52
7.4.250.0080.00016.56
7.4.240.0030.00316.59
7.4.230.0000.00716.70
7.4.220.0060.01316.47
7.4.210.0140.00016.63
7.4.200.0000.00716.66
7.4.160.0080.00816.64
7.4.150.0090.00917.40
7.4.140.0060.01717.86
7.4.130.0080.01016.59
7.4.120.0060.01116.62
7.4.110.0150.00816.79
7.4.100.0100.01416.50
7.4.90.0100.00716.60
7.4.80.0060.01019.39
7.4.70.0120.00816.83
7.4.60.0100.00616.43
7.4.50.0040.00416.63
7.4.40.0070.01016.68
7.4.30.0140.01016.37
7.4.00.0030.01214.91
7.3.330.0070.00013.31
7.3.320.0000.00613.39
7.3.310.0030.00316.41
7.3.300.0000.00716.40
7.3.290.0060.01416.37
7.3.280.0130.00616.38
7.3.270.0080.00817.40
7.3.260.0060.01016.58
7.3.250.0150.00416.52
7.3.240.0060.01016.50
7.3.230.0070.01016.45
7.3.210.0080.00816.64
7.3.200.0190.00416.63
7.3.190.0060.00916.47
7.3.180.0140.00316.70
7.3.170.0120.00916.67
7.3.160.0090.01216.32
7.3.10.0080.01116.34
7.3.00.0130.01116.11
7.2.330.0070.01016.51
7.2.320.0060.01216.75
7.2.310.0090.00916.68
7.2.300.0120.01116.80
7.2.290.0110.01116.67
7.2.130.0100.00716.70
7.2.120.0190.00816.78
7.2.110.0080.01116.34
7.2.100.0210.00416.60
7.2.90.0180.00716.36
7.2.80.0130.01316.38
7.2.70.0200.00316.35
7.2.60.0190.01316.35
7.2.50.0150.01116.50
7.2.40.0160.00916.68
7.2.30.0180.00616.78
7.2.20.0190.00616.34
7.2.10.0170.00616.60
7.2.00.0220.00716.76
7.1.250.0070.01415.31
7.1.200.0060.00615.64
7.1.70.0080.00317.05
7.1.60.0060.01820.03
7.1.50.0150.00416.94
7.1.00.0070.07322.44
7.0.200.0270.00714.64
7.0.60.0100.08320.17
7.0.50.0070.07717.96
7.0.40.0170.07320.14
7.0.30.0570.06720.18
7.0.20.0370.08020.12
7.0.10.0270.08320.15
7.0.00.0000.09720.09
5.6.280.0000.05020.93
5.6.210.0100.03320.77
5.6.200.0100.08018.34
5.6.190.0030.08720.35
5.6.180.0300.07320.58
5.6.170.0300.07320.57
5.6.160.0070.07320.50
5.6.150.0030.07318.16
5.6.140.0170.05018.20
5.6.130.0130.07018.24
5.6.120.0100.06021.01
5.6.110.0070.04320.98
5.6.100.0100.07321.00
5.6.90.0130.07721.02
5.6.80.0000.06320.39
5.6.70.0270.04720.41
5.5.350.0270.06020.46
5.5.340.0070.08017.94
5.5.330.0030.09020.47
5.5.320.0370.07020.32
5.5.310.0370.07320.34
5.5.300.0070.04018.02
5.5.290.0030.09017.96
5.5.280.0030.04320.86
5.5.270.0230.04020.78
5.5.260.0100.03720.91
5.5.250.0030.08020.63
5.5.240.0030.08720.31
5.4.450.0330.07019.27
5.4.440.0270.07719.39
5.4.430.0130.04719.40
5.4.420.0100.04719.52
5.4.410.0200.03719.19
5.4.400.0200.07318.97
5.4.390.0300.07018.94
5.4.380.0200.07718.87
5.4.370.0300.05019.20
5.4.360.0270.04019.08
5.4.350.0170.04319.16
5.4.340.0170.05718.98
5.4.320.0230.06719.31
5.4.310.0170.07019.08
5.4.300.0200.04319.16
5.4.290.0400.06018.81
5.4.280.0270.07319.23
5.4.270.0330.03719.13
5.4.260.0230.07019.22
5.4.250.0100.06018.99
5.4.240.0270.07319.11
5.4.230.0300.05019.16
5.4.220.0200.08019.21
5.4.210.0330.03318.98
5.4.200.0200.04019.25
5.4.190.0270.06718.97
5.4.180.0270.06719.12
5.4.170.0200.04319.36
5.4.160.0330.06318.85
5.4.150.0200.07719.20
5.4.140.0330.03716.36
5.4.130.0230.04016.50
5.4.120.0230.06716.50
5.4.110.0200.03716.59
5.4.100.0300.06316.55
5.4.90.0200.06716.42
5.4.80.0170.07016.31
5.4.70.0300.06316.44

preferences:
48.61 ms | 401 KiB | 5 Q