3v4l.org

run code in 300+ PHP versions simultaneously
<?php $result = array ( array("Volvo", 22, 18), array("BMW", 15, 13), array("Saab", 5, 2), array("Land Rover", 17, 15) ); $columns = []; $rows = []; foreach ($result as $row) { foreach($row as $key => $column) { $key === 0 ? $columns[] = $row[$key] : $rows[$key][] = $row[$key]; } } echo implode("--", $columns) . PHP_EOL; foreach ($rows as $row) { echo implode("--", $row) . PHP_EOL; }

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.30.0110.00717.47
8.5.20.0120.00719.66
8.5.10.0100.00719.61
8.5.00.0170.00520.07
8.4.180.0140.00722.05
8.4.170.0140.01021.92
8.4.160.0120.00822.02
8.4.150.0060.00616.90
8.4.140.0140.00917.47
8.4.130.0100.01318.84
8.4.120.0040.00519.52
8.4.110.0110.00822.38
8.4.100.0160.00417.72
8.4.90.0140.00720.37
8.4.80.0140.00618.83
8.4.70.0100.01120.55
8.4.60.0060.00320.67
8.4.50.0150.00518.70
8.4.40.0130.00720.61
8.4.30.0100.01020.40
8.4.20.0160.00417.82
8.4.10.0030.00619.74
8.3.300.0100.01018.39
8.3.290.0100.01120.83
8.3.280.0140.00618.39
8.3.270.0130.00716.73
8.3.260.0110.00816.77
8.3.250.0120.00916.79
8.3.240.0070.00516.77
8.3.230.0130.00616.54
8.3.220.0100.00819.13
8.3.210.0030.00516.65
8.3.200.0020.00616.55
8.3.190.0060.00419.08
8.3.180.0100.01018.95
8.3.170.0070.01117.41
8.3.160.0120.00618.25
8.3.150.0110.00716.48
8.3.140.0110.00716.43
8.3.130.0030.00718.30
8.3.120.0070.01020.74
8.3.110.0040.00818.29
8.3.100.0090.00618.42
8.3.90.0070.01118.29
8.3.80.0060.00619.36
8.3.70.0110.00316.50
8.3.60.0110.00718.28
8.3.50.0100.00423.63
8.3.40.0120.00318.79
8.3.30.0160.00318.67
8.3.20.0080.00020.85
8.3.10.0000.00820.39
8.3.00.0000.00721.84
8.2.300.0130.00920.35
8.2.290.0110.00916.69
8.2.280.0060.00518.33
8.2.270.0110.00722.11
8.2.260.0070.01017.17
8.2.250.0030.01616.74
8.2.240.0150.00417.27
8.2.230.0110.00020.94
8.2.220.0030.00624.06
8.2.210.0050.00326.77
8.2.200.0040.00418.88
8.2.190.0120.00616.63
8.2.180.0090.00618.16
8.2.170.0120.00622.96
8.2.160.0100.00320.46
8.2.150.0090.00024.18
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0070.00021.00
8.2.110.0030.00620.47
8.2.100.0110.00017.84
8.2.90.0000.00817.91
8.2.80.0060.00319.23
8.2.70.0040.00417.36
8.2.60.0000.00718.05
8.2.50.0060.00318.07
8.2.40.0080.00019.71
8.2.30.0040.00418.19
8.2.20.0040.00418.13
8.2.10.0040.00419.31
8.2.00.0070.00019.38
8.1.340.0110.00920.37
8.1.330.0100.00916.04
8.1.320.0070.00118.45
8.1.310.0040.00418.41
8.1.300.0040.00418.45
8.1.290.0000.00930.84
8.1.280.0090.00625.92
8.1.270.0100.00020.73
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0120.00020.77
8.1.230.0060.00620.93
8.1.220.0080.00017.79
8.1.210.0030.00618.82
8.1.200.0040.00417.23
8.1.190.0000.00817.11
8.1.180.0040.00418.10
8.1.170.0040.00418.59
8.1.160.0050.00318.88
8.1.150.0040.00418.89
8.1.140.0000.00722.02
8.1.130.0000.00719.15
8.1.120.0000.00717.35
8.1.110.0040.00417.34
8.1.100.0000.00817.34
8.1.90.0000.00717.42
8.1.80.0030.00517.43
8.1.70.0080.00017.44
8.1.60.0040.00417.47
8.1.50.0060.00317.57
8.1.40.0030.00517.42
8.1.30.0040.00717.55
8.1.20.0080.00417.49
8.1.10.0030.00617.64
8.1.00.0050.00517.56
8.0.300.0090.00019.89
8.0.290.0070.00016.75
8.0.280.0000.00718.47
8.0.270.0070.00017.93
8.0.260.0030.00316.76
8.0.250.0000.00716.93
8.0.240.0000.00716.95
8.0.230.0070.00316.91
8.0.220.0050.00216.79
8.0.210.0070.00016.83
8.0.200.0030.00317.02
8.0.190.0080.00016.89
8.0.180.0040.00416.96
8.0.170.0000.00916.96
8.0.160.0070.00316.89
8.0.150.0070.00016.82
8.0.140.0000.00716.79
8.0.130.0000.00613.32
8.0.120.0070.00016.83
8.0.110.0040.00416.77
8.0.100.0050.00216.89
8.0.90.0040.00416.93
8.0.80.0110.01116.87
8.0.70.0040.00416.92
8.0.60.0020.00516.77
8.0.50.0030.00516.88
8.0.30.0120.00617.27
8.0.20.0100.01017.34
8.0.10.0000.00717.13
8.0.00.0130.00616.49
7.4.330.0050.00015.55
7.4.320.0000.00616.63
7.4.300.0030.00316.52
7.4.290.0030.00316.49
7.4.280.0000.00816.50
7.4.270.0070.00016.38
7.4.260.0000.00513.31
7.4.250.0070.00016.61
7.4.240.0020.00616.62
7.4.230.0070.00016.47
7.4.220.0030.00316.61
7.4.210.0100.00416.62
7.4.200.0000.00716.48
7.4.130.0030.01516.56
7.4.120.0130.00316.55
7.4.110.0080.01116.49
7.4.100.0060.01616.52
7.4.90.0090.00916.36
7.4.80.0040.01319.39
7.4.70.0120.00316.38
7.4.60.0030.01316.63
7.4.50.0090.00616.36
7.4.40.0130.00316.54
7.4.00.0040.01114.50
7.3.330.0000.00816.39
7.3.320.0060.00013.06
7.3.310.0000.00716.14
7.3.300.0000.00716.33
7.3.290.0070.00816.32
7.3.280.0110.00416.28
7.3.260.0130.00716.63
7.3.230.0120.00616.55
7.3.210.0140.00316.24
7.3.200.0090.00916.48
7.3.190.0100.00716.51
7.3.180.0040.01716.49
7.3.170.0130.00916.44
7.3.160.0100.00716.37
7.3.120.0140.00014.84
7.3.110.0100.00314.74
7.3.100.0060.00914.73
7.3.90.0150.00014.69
7.3.80.0040.00914.82
7.3.70.0120.00714.83
7.3.60.0110.00714.77
7.3.50.0000.01314.84
7.3.40.0100.00314.67
7.3.30.0130.00614.70
7.3.20.0050.00914.83
7.3.10.0060.00914.88
7.3.00.0080.00514.91
7.2.330.0120.00616.73
7.2.320.0070.01016.38
7.2.310.0100.00616.74
7.2.300.0100.00616.85
7.2.290.0150.00016.71
7.2.250.0110.00314.79
7.2.240.0110.00414.96
7.2.230.0060.00814.89
7.2.220.0140.00015.08
7.2.210.0090.00614.70
7.2.200.0090.00614.90
7.2.190.0060.01315.27
7.2.180.0030.01214.89
7.2.170.0070.01115.20
7.1.330.0030.01014.01
7.1.320.0090.00613.86
7.1.310.0100.00713.77
7.1.300.0060.00814.09
7.1.290.0070.00813.83
7.1.280.0090.00413.96
7.1.270.0070.00714.05
7.1.260.0030.01013.80

preferences:
49.12 ms | 1412 KiB | 5 Q