3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fruits = ['yellow', 'green', 'orange']; $relatedFurites = [ ['yellow'=>'banana', 'green'=>'avacado'], ['yellow'=>'mango', 'green'=> 'chilli'] ]; Foreach($fruits as $color){ $output[$color] = array_column($relatedFurites, $color); } Var_dump($output);

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.4.130.0150.00717.99
8.4.120.0120.00822.27
8.4.110.0120.00818.90
8.4.100.0050.00417.54
8.4.90.0100.01020.46
8.4.80.0090.00218.80
8.4.70.0100.00917.93
8.4.60.0090.01118.66
8.4.50.0080.00919.42
8.4.40.0080.00017.59
8.4.30.0030.00617.48
8.4.20.0100.00019.63
8.4.10.0130.00717.39
8.3.250.0100.00918.87
8.3.240.0130.00616.53
8.3.230.0120.00716.64
8.3.220.0110.00719.00
8.3.210.0080.00616.48
8.3.200.0070.00116.72
8.3.190.0050.00417.15
8.3.180.0030.00516.55
8.3.170.0060.00319.20
8.3.160.0040.01218.39
8.3.150.0190.00017.03
8.3.140.0040.00418.79
8.3.130.0040.00416.73
8.3.120.0040.01518.64
8.3.110.0100.01020.94
8.3.100.0040.00424.06
8.3.90.0060.00326.77
8.3.80.0060.00318.35
8.3.70.0110.01116.58
8.3.60.0090.00916.63
8.3.50.0120.00518.18
8.3.40.0070.00718.73
8.3.30.0140.00018.61
8.3.20.0060.00319.16
8.3.10.0100.00721.82
8.3.00.0140.00323.66
8.2.290.0100.00816.61
8.2.280.0100.00818.18
8.2.270.0150.00316.88
8.2.260.0070.00720.90
8.2.250.0080.00018.61
8.2.240.0060.00318.98
8.2.230.0090.00022.58
8.2.220.0090.00037.54
8.2.210.0140.00326.77
8.2.200.0030.00616.50
8.2.190.0110.01116.58
8.2.180.0140.00725.92
8.2.170.0110.00422.96
8.2.160.0040.01119.40
8.2.150.0030.00525.66
8.2.140.0150.00624.66
8.2.130.0000.00722.22
8.2.120.0150.00426.35
8.2.110.0060.00320.53
8.2.100.0090.00317.84
8.2.90.0000.00819.34
8.2.80.0060.00317.97
8.2.70.0040.00417.92
8.2.60.0040.00418.05
8.2.50.0000.00818.10
8.2.40.0080.00019.34
8.2.30.0050.00219.36
8.2.20.0000.00718.02
8.2.10.0040.00418.04
8.2.00.0040.00419.52
8.1.330.0120.00715.89
8.1.320.0100.00915.93
8.1.310.0050.00316.38
8.1.300.0060.00915.96
8.1.290.0060.00318.88
8.1.280.0180.00025.92
8.1.270.0040.00423.99
8.1.260.0140.00426.35
8.1.250.0040.00428.09
8.1.240.0040.01122.00
8.1.230.0040.00720.93
8.1.220.0030.00617.74
8.1.210.0030.00618.77
8.1.200.0100.00017.35
8.1.190.0000.00817.13
8.1.180.0000.00818.10
8.1.170.0040.00618.34
8.1.160.0070.00018.84
8.1.150.0050.00218.84
8.1.140.0040.00417.60
8.1.130.0000.01019.03
8.1.120.0000.00717.46
8.1.110.0030.00917.37
8.1.100.0000.00817.45
8.1.90.0080.00017.35
8.1.80.0040.00417.50
8.1.70.0070.00017.28
8.1.60.0030.00617.61
8.1.50.0080.00017.50
8.1.40.0050.00317.47
8.1.30.0000.00917.47
8.1.20.0050.00217.50
8.1.10.0040.00417.36
8.1.00.0030.00517.46
8.0.300.0000.00718.77
8.0.290.0040.00416.75
8.0.280.0070.00018.45
8.0.270.0000.00716.82
8.0.260.0000.00917.32
8.0.250.0030.00516.96
8.0.240.0000.00716.88
8.0.230.0040.00416.92
8.0.220.0040.00416.84
8.0.210.0030.00316.84
8.0.200.0000.00716.90
8.0.190.0000.00916.94
8.0.180.0040.00416.96
8.0.170.0060.00316.82
8.0.160.0000.00816.86
8.0.150.0030.00616.81
8.0.140.0080.00016.81
8.0.130.0030.00313.27
8.0.120.0000.00816.84
8.0.110.0030.00616.93
8.0.100.0050.00216.93
8.0.90.0080.00016.73
8.0.80.0130.00316.88
8.0.70.0000.00816.90
8.0.60.0000.00816.94
8.0.50.0000.00716.88
8.0.30.0120.00717.08
8.0.20.0100.01017.40
8.0.10.0000.00717.04
8.0.00.0080.01116.71
7.4.330.0000.00615.55
7.4.320.0000.00616.41
7.4.300.0070.00016.61
7.4.290.0000.00616.39
7.4.280.0050.00316.39
7.4.270.0030.00616.40
7.4.260.0030.00316.54
7.4.250.0000.00716.47
7.4.240.0000.00816.62
7.4.230.0040.00416.66
7.4.220.0070.00016.61
7.4.210.0090.00616.53
7.4.200.0000.00716.60
7.4.160.0080.00816.51
7.4.140.0080.01317.86
7.4.130.0120.00616.49
7.4.120.0070.01316.49
7.4.110.0040.01316.50
7.4.100.0150.00616.55
7.4.90.0140.00316.45
7.4.80.0030.01419.39
7.4.70.0090.00916.52
7.4.60.0070.01016.37
7.4.50.0000.01316.45
7.4.40.0150.00316.45
7.4.00.0040.01314.96
7.3.330.0000.00713.12
7.3.320.0000.00613.30
7.3.310.0000.00716.45
7.3.300.0000.00716.18
7.3.290.0030.00316.34
7.3.280.0110.01116.32
7.3.260.0140.00816.42
7.3.240.0110.00716.40
7.3.230.0120.00416.48
7.3.210.0040.01216.25
7.3.200.0060.01116.68
7.3.190.0070.01416.43
7.3.180.0150.00616.28
7.3.170.0130.00416.53
7.3.160.0090.00616.37
7.3.120.0110.00714.89
7.3.110.0060.00914.77
7.3.100.0120.00614.72
7.3.90.0060.00714.63
7.3.80.0080.00714.81
7.3.70.0090.00314.72
7.3.60.0080.00514.87
7.3.50.0010.01214.90
7.3.40.0090.00514.82
7.3.30.0080.00514.88
7.3.20.0090.00616.76
7.3.10.0100.00416.59
7.3.00.0090.00716.50
7.2.330.0100.01416.75
7.2.320.0050.01316.63
7.2.310.0110.01216.36
7.2.300.0130.01016.61
7.2.290.0030.01816.61
7.2.250.0050.01215.06
7.2.240.0060.01315.19
7.2.230.0060.01014.96
7.2.220.0060.01015.04
7.2.210.0050.00914.86
7.2.200.0060.00615.07
7.2.190.0090.00715.04
7.2.180.0050.00914.87
7.2.170.0030.00714.84
7.2.70.0140.01315.02
7.2.60.0190.00614.96
7.2.50.0240.00615.03
7.2.40.0210.00815.08
7.2.30.0250.00314.75
7.2.20.0300.00314.67
7.2.10.0220.00614.68
7.2.00.0230.00814.90
7.1.330.0080.00615.86
7.1.320.0070.00415.79
7.1.310.0040.00615.79
7.1.300.0050.01015.84
7.1.290.0070.00815.86
7.1.280.0050.00715.68
7.1.270.0070.00715.96
7.1.260.0060.00715.84
7.1.200.0030.00615.83
7.1.170.0430.00813.86
7.1.160.0220.00613.87
7.1.150.0240.00813.63
7.1.140.0170.01013.59
7.1.130.0180.00913.68
7.1.120.0190.00813.74
7.1.110.0220.00713.52
7.1.100.0300.00613.66
7.1.90.0290.00913.61
7.1.80.0290.00314.07
7.1.70.0210.00413.86
7.1.60.0380.01631.73
7.1.50.0430.00731.82
7.1.40.0380.00931.79
7.1.30.0380.00731.52
7.1.20.0460.00731.87
7.1.10.0140.01413.65
7.1.00.0160.00913.65

preferences:
123.74 ms | 403 KiB | 5 Q