3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x=['a','b']; $target_path_arr = array(); for ($i = 0; $i < count($x); $i++) { $target_path = $x[$i]; $target_path_arr[] = $target_path; // use this in future echo $target_path." img ".$i+1;//."<br>"; }

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.0120.00316.75
8.3.50.0070.00716.50
8.3.40.0150.00018.66
8.3.30.0070.01118.59
8.3.20.0030.01320.34
8.3.10.0080.00023.61
8.3.00.0070.00717.66
8.2.180.0140.00716.48
8.2.170.0100.00622.96
8.2.160.0060.00620.34
8.2.150.0090.00624.18
8.2.140.0080.00024.66
8.2.130.0040.00419.44
8.2.120.0120.00626.35
8.2.110.0060.00621.06
8.2.100.0040.00718.03
8.2.90.0000.00819.36
8.2.80.0030.00517.97
8.2.70.0000.00817.75
8.2.60.0000.00818.04
8.2.50.0050.00518.10
8.2.40.0000.00720.59
8.2.30.0070.00019.25
8.2.20.0070.00018.10
8.2.10.0000.00818.10
8.2.00.0000.00717.98
8.1.280.0110.00725.92
8.1.270.0080.00022.19
8.1.260.0000.01426.35
8.1.250.0070.00028.09
8.1.240.0050.00523.83
8.1.230.0040.00819.00
8.1.220.0050.00317.79
8.1.210.0090.00018.77
8.1.200.0060.00317.36
8.1.190.0100.00017.10
8.1.180.0000.00818.10
8.1.170.0040.00418.43
8.1.160.0030.00319.00
8.1.150.0000.00720.61
8.1.140.0030.00319.57
8.1.130.0030.00518.95
8.1.120.0070.00017.32
8.1.110.0030.00617.48
8.1.100.0040.00417.49
8.1.90.0070.00017.36
8.1.80.0040.00417.34
8.1.70.0000.00717.37
8.1.60.0000.00917.63
8.1.50.0030.00517.55
8.1.40.0040.00417.47
8.1.30.0000.00817.60
8.1.20.0000.00817.66
8.1.10.0070.00017.56
8.1.00.0080.00017.54
8.0.300.0040.00418.77
8.0.290.0000.00716.75
8.0.280.0000.00718.43
8.0.270.0080.00017.18
8.0.260.0070.00016.68
8.0.250.0030.00316.84
8.0.240.0040.00416.84
8.0.230.0030.00616.95
8.0.220.0030.00316.85
8.0.210.0000.00716.88
8.0.200.0030.00316.93
8.0.190.0000.00816.82
8.0.180.0070.00016.92
8.0.170.0070.00016.96
8.0.160.0030.00416.78
8.0.150.0070.00016.80
8.0.140.0040.00416.89
8.0.130.0060.00013.36
8.0.120.0000.00716.74
8.0.110.0000.00816.75
8.0.100.0000.00716.99
8.0.90.0040.00416.88
8.0.80.0120.00616.81
8.0.70.0040.00416.86
8.0.60.0040.00416.71
8.0.50.0040.00416.73
8.0.30.0120.00617.04
8.0.20.0110.00817.40
8.0.10.0030.00616.99
8.0.00.0140.00416.85
7.4.330.0000.00515.55
7.4.320.0030.00316.51
7.4.300.0030.00316.51
7.4.290.0030.00616.60
7.4.280.0000.00816.50
7.4.270.0000.00716.38
7.4.260.0000.00513.28
7.4.250.0000.00716.52
7.4.240.0030.00316.56
7.4.230.0000.00716.25
7.4.220.0130.01316.41
7.4.210.0070.00816.57
7.4.200.0030.00316.31
7.4.160.0090.00616.53
7.4.150.0070.01017.40
7.4.140.0100.00717.86
7.4.130.0120.00616.50
7.4.120.0100.00916.55
7.4.110.0080.01016.44
7.4.100.0150.00316.52
7.4.90.0090.00816.57
7.4.80.0030.01619.39
7.4.70.0070.01016.61
7.4.60.0080.00816.55
7.4.50.0100.00716.20
7.4.40.0160.00016.48
7.4.30.0140.00316.58
7.4.00.0080.00814.87
7.3.330.0030.00313.07
7.3.320.0000.00513.21
7.3.310.0000.00716.33
7.3.300.0030.00316.24
7.3.290.0030.00316.32
7.3.280.0090.00816.33
7.3.270.0070.01017.40
7.3.260.0110.00716.53
7.3.250.0120.01016.35
7.3.240.0070.01016.40
7.3.230.0060.01316.39
7.3.210.0070.01016.38
7.3.200.0070.01316.67
7.3.190.0120.00416.40
7.3.180.0030.01316.36
7.3.170.0070.01016.56
7.3.160.0130.00316.54
7.3.120.0080.01014.66
7.3.110.0080.00814.73
7.3.100.0060.00914.89
7.3.90.0100.00815.00
7.3.80.0080.00814.98
7.3.70.0070.01014.96
7.3.60.0110.00314.74
7.3.50.0090.00614.73
7.3.40.0090.00614.67
7.3.30.0030.01114.90
7.3.20.0050.00716.78
7.3.10.0070.00516.74
7.3.00.0020.01216.65
7.2.330.0100.00716.66
7.2.320.0060.01616.40
7.2.310.0070.01116.49
7.2.300.0240.00016.72
7.2.290.0050.01016.76
7.2.250.0070.01115.19
7.2.240.0100.01015.21
7.2.230.0070.00715.04
7.2.220.0060.00915.13
7.2.210.0070.00815.13
7.2.200.0100.00215.04
7.2.190.0060.00914.96
7.2.180.0030.01114.96
7.2.170.0050.00915.08
7.2.60.0150.00017.16
7.2.00.0070.01019.25
7.1.330.0060.00815.74
7.1.320.0100.00215.81
7.1.310.0060.00915.84
7.1.300.0050.01015.72
7.1.290.0050.00715.81
7.1.280.0060.00815.83
7.1.270.0080.00515.71
7.1.260.0060.00815.82
7.1.200.0090.00615.98
7.1.100.0030.00918.06
7.1.70.0060.00616.93
7.1.60.0150.01235.15
7.1.50.0160.01034.93
7.1.40.0160.01334.48
7.1.30.0140.01434.66
7.1.20.0180.01134.52
7.1.10.0060.00616.73
7.1.00.0070.00716.59
7.0.200.0030.01016.53
7.0.190.0030.01216.85
7.0.180.0000.01316.18
7.0.170.0030.01416.26
7.0.160.0050.00816.17
7.0.150.0060.00616.18
7.0.140.0100.00316.52
7.0.130.0030.01216.44
7.0.120.0060.00916.58
7.0.110.0030.01216.27
7.0.100.0000.01516.27
7.0.90.0030.01016.23
7.0.80.0060.01216.29
7.0.70.0030.01016.18
7.0.60.0030.01216.15
7.0.50.0030.01016.39
7.0.40.0070.00716.38
7.0.30.0000.01316.40
7.0.20.0040.01516.36
7.0.10.0090.00916.45
7.0.00.0080.00916.29

preferences:
38.56 ms | 401 KiB | 5 Q