3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array( 20 => array( 'width' => 20, 'height' => 20, ), ); $it = new RecursiveArrayIterator( $arr ); while( $it->valid() ) { echo $it -> key() . ' : ' . $it -> current() .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.3.60.0140.01018.31
8.3.50.0110.01122.05
8.3.40.0130.00718.70
8.3.30.0100.01020.17
8.3.20.0070.00418.57
8.3.10.0030.00721.08
8.3.00.0090.00019.67
8.2.180.0200.00716.50
8.2.170.0120.00922.96
8.2.160.0190.00020.39
8.2.150.0110.00024.18
8.2.140.0090.00024.66
8.2.130.0030.00626.16
8.2.120.0030.00620.94
8.2.110.0110.00020.33
8.2.100.0040.01117.77
8.2.90.0040.00419.08
8.2.80.0000.00817.97
8.2.70.0080.00417.50
8.2.60.0040.00418.05
8.2.50.0090.00018.07
8.2.40.0030.00518.09
8.2.30.0030.00621.33
8.2.20.0040.00417.73
8.2.10.0040.00417.63
8.2.00.0040.00417.66
8.1.280.0140.00325.92
8.1.270.0100.00023.99
8.1.260.0110.00026.35
8.1.250.0060.00328.09
8.1.240.0140.00720.75
8.1.230.0100.00320.95
8.1.220.0000.00918.77
8.1.210.0000.00918.88
8.1.200.0090.00517.22
8.1.190.0090.00019.30
8.1.180.0030.00718.10
8.1.170.0030.00618.36
8.1.160.0040.00418.83
8.1.150.0050.00518.57
8.1.140.0000.00817.58
8.1.130.0000.00917.80
8.1.120.0060.00317.45
8.1.110.0060.00317.43
8.1.100.0030.00617.48
8.1.90.0040.00417.56
8.1.80.0060.00317.44
8.1.70.0040.00417.54
8.1.60.0030.00717.62
8.1.50.0070.00317.42
8.1.40.0030.00617.51
8.1.30.0000.00917.63
8.1.20.0090.00017.64
8.1.10.0030.00617.67
8.1.00.0060.00317.46
8.0.300.0030.00519.90
8.0.290.0080.00016.93
8.0.280.0050.00318.38
8.0.270.0080.00017.24
8.0.260.0020.00516.78
8.0.250.0060.00316.85
8.0.240.0000.01016.87
8.0.230.0000.00916.86
8.0.220.0040.00416.83
8.0.210.0060.00316.93
8.0.200.0040.00416.94
8.0.190.0090.00916.87
8.0.180.0040.00416.82
8.0.170.0030.00716.89
8.0.160.0030.00616.91
8.0.150.0050.00316.86
8.0.140.0030.00616.83
8.0.130.0030.00513.40
8.0.120.0050.00316.83
8.0.110.0080.00016.88
8.0.100.0030.00516.68
8.0.90.0030.00516.93
8.0.80.0030.01816.78
8.0.70.0090.00016.78
8.0.60.0040.00416.94
8.0.50.0060.00316.89
8.0.30.0420.01616.89
8.0.20.0390.02117.40
8.0.10.0000.00816.79
8.0.00.0400.00816.72
7.4.330.0000.00616.88
7.4.320.0080.00016.40
7.4.300.0000.01116.39
7.4.290.0000.00816.43
7.4.280.0040.00416.48
7.4.270.0070.00016.30
7.4.260.0040.00413.28
7.4.250.0060.00316.24
7.4.240.0000.00716.48
7.4.230.0040.00416.52
7.4.220.0160.01616.33
7.4.210.0110.01216.31
7.4.200.0090.00016.22
7.4.190.0030.00516.54
7.4.160.0630.01716.33
7.4.150.0170.00917.40
7.4.140.0190.01517.86
7.4.130.0340.01516.41
7.4.120.0170.02216.37
7.4.110.0870.02216.40
7.4.100.1100.03016.45
7.4.90.0530.02416.41
7.4.80.0290.01019.39
7.4.70.0940.02216.42
7.4.60.0120.01216.44
7.4.50.0030.00616.48
7.4.40.0110.00322.77
7.4.30.0170.00816.55
7.3.330.0000.00813.05
7.3.320.0030.00513.13
7.3.310.0000.00816.27
7.3.300.0060.00316.16
7.3.290.0070.01416.16
7.3.280.0070.01316.16
7.3.270.0100.01617.40
7.3.260.0380.01218.24
7.3.250.0350.02516.20
7.3.240.0530.02316.03
7.3.230.0350.01616.39
7.3.210.0210.01016.25
7.3.200.0250.02119.39
7.3.190.1130.02716.21
7.3.180.0230.02416.36
7.3.170.0720.01716.27
7.3.160.0090.01216.26
7.2.330.0910.01716.59
7.2.320.0480.02216.48
7.2.310.0120.01616.38
7.2.300.0140.01016.54
7.2.290.0340.00816.56
7.2.100.0220.00514.78
7.2.90.0740.01114.46
7.2.80.0730.00414.80
7.2.70.0940.00714.83
7.2.60.1130.00414.94
7.2.50.0900.00314.63
7.2.40.0130.00614.71
7.2.30.0120.00614.82
7.2.20.1000.01014.63
7.2.10.1270.01214.84
7.2.00.1020.01314.84
7.1.220.0150.00313.66
7.1.210.0870.00713.89
7.1.200.0850.00613.76
7.1.190.1040.01313.79
7.1.180.0920.01013.61
7.1.170.0080.01613.61
7.1.160.0920.01413.61
7.1.150.0700.00413.61
7.1.140.1070.01013.61
7.1.130.1090.00313.92
7.1.120.0150.01213.68
7.1.110.1020.01313.79
7.1.100.0080.01513.61
7.1.90.0960.00313.95
7.1.80.0670.00613.87
7.1.70.0990.00013.78
7.1.60.1040.01031.72
7.1.50.0960.00731.87
7.1.40.1360.01631.97
7.1.30.0280.00931.98
7.1.20.0480.01131.68
7.1.10.0120.00413.61
7.1.00.0170.00313.70
7.0.310.0990.00013.61
7.0.300.0830.00713.61
7.0.290.0680.01013.61
7.0.280.0330.00313.61
7.0.270.1040.00913.61
7.0.260.1130.00313.61
7.0.250.1390.00613.61
7.0.240.0210.00813.61
7.0.230.1180.00613.61
7.0.220.0970.01613.61
7.0.210.0740.00913.61
7.0.200.0600.00313.61
7.0.190.1350.00613.65
7.0.180.0430.00713.64
7.0.170.0170.00313.61
7.0.160.0670.00313.61
7.0.150.1220.00313.61
7.0.140.1480.00013.74
7.0.130.1210.00313.61
7.0.120.1370.00013.61
7.0.110.1010.00313.61
7.0.100.1730.00313.61
7.0.90.0160.00513.61
7.0.80.1340.01213.61
7.0.70.0850.00613.61
7.0.60.1740.00913.62
7.0.50.0480.00413.70
7.0.40.0110.00413.65
7.0.30.0040.01613.61
7.0.20.0130.00713.77
7.0.10.0350.00713.72
7.0.00.0170.01313.62
5.6.380.0030.01214.19
5.6.370.0110.00913.97
5.6.360.0070.00714.23
5.6.350.0110.00714.36
5.6.340.0110.01013.71
5.6.330.0100.00313.80
5.6.320.0060.01014.29
5.6.310.0090.00614.27
5.6.300.0110.00814.08
5.6.290.0120.00614.15
5.6.280.0150.00714.00
5.6.270.0170.00014.25
5.6.260.0120.00913.91
5.6.250.0060.01114.23
5.6.240.0210.00014.36
5.6.230.0150.00514.36
5.6.220.0130.00014.35
5.6.210.0080.00813.79
5.6.200.0100.00914.41
5.6.190.0050.00914.40
5.6.180.0170.00614.55
5.6.170.0090.01414.32
5.6.160.0140.00714.12
5.6.150.0170.00414.33
5.6.140.0110.00514.44
5.6.130.0190.00014.23
5.6.120.0040.01614.07
5.6.110.0110.00914.22
5.6.100.0110.01514.23
5.6.90.0080.01114.17
5.5.380.0040.01113.61
5.5.370.0130.00513.61
5.5.360.0040.00713.61
5.5.350.0040.00713.61
5.5.340.0080.00813.61
5.5.330.0000.01613.61
5.5.320.0110.00413.61
5.5.310.0120.00713.61
5.5.300.0040.00913.61
5.5.290.0090.00413.61
5.5.280.0060.00613.61
5.5.270.0030.01213.61
5.5.260.0070.00713.61
5.4.450.0080.00413.61
5.4.440.0030.01313.61
5.4.430.0120.00313.61
5.4.420.0110.00513.61

preferences:
39.04 ms | 401 KiB | 5 Q