3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = [ "name" => [ "0" => "third.png", "1" => "second.png", "2" => "first.png", ], "type" => [ "0" => "image/png", "1" => "image/png", "2" => "image/png", ], "tmp_name" => [ "0" => "/opt/lampp/temp/phpOPmQcB", "1" => "/opt/lampp/temp/phpk0j1yp", "2" => "/opt/lampp/temp/phpS2mhVd", ], "error" => [ "0" => 0, "1" => 0, "2" => 0, ], "size" => [ "0" => 179440, "1" => 102238, "2" => 75915, ], ]; $keys = array_keys($arr); $count = count($arr[$keys[0]]); for($i = 0; $i<$count; $i++){ foreach($keys as $val){ $new[$i][$val] = $arr[$val][$i]; } } var_dump($new);

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.130.0040.00418.27
8.3.120.0110.01120.70
8.3.110.0100.00220.94
8.3.100.0080.00324.06
8.3.90.0050.00226.77
8.3.80.0030.00718.43
8.3.70.0090.00616.75
8.3.60.0060.01018.40
8.3.50.0110.00818.29
8.3.40.0090.00618.81
8.3.30.0110.00718.67
8.3.20.0000.00918.96
8.3.10.0030.00621.91
8.3.00.0140.00322.36
8.2.250.0070.00718.94
8.2.240.0040.01218.88
8.2.230.0080.00022.58
8.2.220.0000.00937.54
8.2.210.0090.00926.77
8.2.200.0030.00716.75
8.2.190.0070.00716.58
8.2.180.0040.01418.29
8.2.170.0090.00622.96
8.2.160.0070.00720.47
8.2.150.0030.00624.18
8.2.140.0050.00324.66
8.2.130.0040.00420.88
8.2.120.0120.00626.35
8.2.110.0100.00021.13
8.2.100.0090.00317.91
8.2.90.0050.00319.20
8.2.80.0080.00017.97
8.2.70.0050.00317.75
8.2.60.0040.00417.75
8.2.50.0000.00917.55
8.2.40.0000.00919.48
8.2.30.0040.00421.14
8.2.20.0070.00018.00
8.2.10.0000.00818.00
8.2.00.0000.00719.32
8.1.300.0120.00017.93
8.1.290.0040.00430.84
8.1.280.0120.00325.92
8.1.270.0040.00422.10
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00319.22
8.1.230.0000.01117.77
8.1.220.0040.00417.74
8.1.210.0030.00618.77
8.1.200.0030.00517.23
8.1.190.0000.00817.35
8.1.180.0060.00318.10
8.1.170.0050.00317.62
8.1.160.0000.00818.74
8.1.150.0060.00318.76
8.1.140.0000.00717.70
8.1.130.0000.00717.45
8.1.120.0040.00417.38
8.1.110.0000.00717.48
8.1.100.0000.00717.41
8.1.90.0000.00717.45
8.1.80.0040.00417.29
8.1.70.0050.00517.46
8.1.60.0000.00817.50
8.1.50.0040.00417.45
8.1.40.0030.00517.54
8.1.30.0040.00417.55
8.1.20.0000.00817.66
8.1.10.0040.00417.48
8.1.00.0060.00317.44
8.0.300.0000.00718.77
8.0.290.0040.00416.75
8.0.280.0050.00218.32
8.0.270.0000.00816.81
8.0.260.0050.00216.80
8.0.250.0070.00016.95
8.0.240.0050.00517.00
8.0.230.0050.00216.84
8.0.220.0000.00816.82
8.0.210.0040.00416.80
8.0.200.0000.00816.95
8.0.190.0040.00416.91
8.0.180.0080.00016.87
8.0.170.0030.00616.87
8.0.160.0000.00716.91
8.0.150.0040.00416.67
8.0.140.0000.00716.76
8.0.130.0000.00513.27
8.0.120.0050.00316.89
8.0.110.0050.00317.00
8.0.100.0040.00416.67
8.0.90.0080.00016.85
8.0.80.0120.00316.92
8.0.70.0040.00416.89
8.0.60.0000.00716.79
8.0.50.0040.00416.93
8.0.30.0070.00817.04
8.0.20.0130.00717.40
8.0.10.0000.00816.92
8.0.00.0120.00716.72
7.4.330.0040.00015.55
7.4.320.0060.00016.53
7.4.300.0000.00616.52
7.4.290.0030.00316.59
7.4.280.0040.00416.50
7.4.270.0070.00016.49
7.4.260.0030.00616.58
7.4.250.0070.00016.48
7.4.240.0000.00716.59
7.4.230.0050.00316.63
7.4.220.0000.00916.30
7.4.210.0030.01016.58
7.4.200.0070.00016.58
7.4.160.0100.00916.43
7.4.140.0090.01317.86
7.4.130.0090.00916.58
7.4.120.0080.01016.42
7.4.110.0070.01016.53
7.4.100.0150.00716.52
7.4.90.0040.01316.73
7.4.80.0030.01819.39
7.4.70.0140.00316.53
7.4.60.0150.00916.36
7.4.50.0120.00316.61
7.4.40.0110.00716.56
7.4.00.0100.00715.11
7.3.330.0030.00313.24
7.3.320.0060.00013.08
7.3.310.0030.00316.18
7.3.300.0030.00316.24
7.3.290.0040.00416.33
7.3.280.0060.01216.37
7.3.260.0080.01016.59
7.3.240.0130.00616.44
7.3.230.0140.00316.42
7.3.210.0130.00316.32
7.3.200.0030.01316.31
7.3.190.0090.00916.38
7.3.180.0110.00716.32
7.3.170.0090.00916.45
7.3.160.0030.01416.64
7.3.10.0040.00816.72
7.3.00.0090.00516.73
7.2.330.0070.01116.43
7.2.320.0070.01016.77
7.2.310.0100.01316.64
7.2.300.0140.01016.80
7.2.290.0100.01416.71
7.2.130.0050.01216.78
7.2.120.0040.00716.82
7.2.110.0060.00716.93
7.2.100.0060.00616.89
7.2.90.0080.00617.04
7.2.80.0080.00616.79
7.2.70.0060.00816.87
7.2.60.0060.00816.76
7.2.50.0060.00917.00
7.2.40.1920.00817.30
7.2.30.1530.01317.26
7.2.20.1230.01017.06
7.2.10.1380.00917.15
7.2.00.0080.00917.22
7.1.250.0030.00915.87
7.1.240.0100.00315.60
7.1.230.0060.00315.61
7.1.220.0100.00315.58
7.1.210.0000.01315.72
7.1.200.0060.00815.88
7.1.190.0040.00715.46
7.1.180.0100.00315.54
7.1.170.0000.01315.73
7.1.160.2850.00615.93
7.1.150.1950.01216.16
7.1.140.2440.00416.42
7.1.130.0180.00616.17
7.1.120.0080.00716.31
7.1.110.0120.00616.07
7.1.100.0100.00815.88
7.1.90.0140.00815.80
7.1.80.0550.00715.97
7.1.70.0070.00615.53
7.1.60.0210.01124.36
7.1.50.0480.01124.37
7.1.40.0150.01024.27
7.1.30.0770.00624.23
7.1.20.0220.00824.10
7.1.10.0100.00915.09
7.1.00.0080.00615.23
7.0.330.0060.00615.05
5.6.380.0030.01214.32

preferences:
28.38 ms | 403 KiB | 5 Q