3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [1, [2, 3]]; $array[1][1] = &$array; count($array, COUNT_RECURSIVE);

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.0060.00318.48
8.3.120.0040.01520.58
8.3.110.0120.00620.94
8.3.100.0060.00324.06
8.3.90.0030.00626.77
8.3.80.0000.00916.50
8.3.70.0120.00316.63
8.3.60.0110.01118.30
8.3.50.0090.00723.71
8.3.40.0120.00318.76
8.3.30.0100.01018.84
8.3.20.0040.00424.18
8.3.10.0070.00024.66
8.3.00.0050.00326.16
8.2.250.0080.00018.46
8.2.240.0090.00018.78
8.2.230.0030.00622.58
8.2.220.0060.00337.54
8.2.210.0070.00726.77
8.2.200.0040.00416.38
8.2.190.0090.01218.29
8.2.180.0100.00725.92
8.2.170.0090.00618.91
8.2.160.0000.01422.96
8.2.150.0040.00425.66
8.2.140.0050.00224.66
8.2.130.0040.00426.16
8.2.120.0080.00021.00
8.2.110.0030.00621.12
8.2.100.0110.00017.91
8.2.90.0040.00418.09
8.2.80.0080.00017.97
8.2.70.0040.00418.03
8.2.60.0040.00417.50
8.2.50.0030.00518.05
8.2.40.0040.00418.16
8.2.30.0000.00818.11
8.2.20.0050.00218.13
8.2.10.0020.00519.27
8.2.00.0040.00419.18
8.1.300.0030.00618.00
8.1.290.0060.00630.84
8.1.280.0130.00725.92
8.1.270.0000.00824.66
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0090.01223.61
8.1.230.0070.00420.91
8.1.220.0040.00417.74
8.1.210.0050.00318.91
8.1.200.0040.00417.22
8.1.190.0050.00317.22
8.1.180.0050.00318.10
8.1.170.0000.00818.95
8.1.160.0030.00520.71
8.1.150.0020.00518.76
8.1.140.0080.00018.87
8.1.130.0030.00320.09
8.1.120.0070.00017.39
8.1.110.0000.00717.36
8.1.100.0040.00717.41
8.1.90.0000.00717.37
8.1.80.0030.00517.42
8.1.70.0000.00817.39
8.1.60.0050.00317.48
8.1.50.0000.00817.46
8.1.40.0070.00317.33
8.1.30.0050.00217.57
8.1.20.0050.00217.70
8.1.10.0000.00817.37
8.1.00.0000.00817.39
8.0.300.0040.00419.90
8.0.290.0090.00016.60
8.0.280.0050.00318.38
8.0.270.0000.00717.91
8.0.260.0030.00318.50
8.0.250.0030.00717.04
8.0.240.0040.00417.02
8.0.230.0030.00316.96
8.0.220.0030.00316.97
8.0.210.0000.00716.93
8.0.200.0030.00316.94
8.0.190.0040.00416.94
8.0.180.0070.00016.95
8.0.170.0030.00516.72
8.0.160.0040.00416.90
8.0.150.0040.00416.84
8.0.140.0000.00716.84
8.0.130.0000.00513.32
8.0.120.0000.00816.74
8.0.110.0050.00316.70
8.0.100.0080.00016.84
8.0.90.0050.00216.88
8.0.80.0070.00816.81
8.0.70.0040.00416.86
8.0.60.0040.00416.86
8.0.50.0040.00416.70
8.0.30.0100.00716.96
8.0.20.0080.01017.15
8.0.10.0130.01016.95
8.0.00.0190.01217.44
7.4.330.0000.00515.55
7.4.320.0040.00416.45
7.4.300.0060.00016.51
7.4.290.0040.00416.48
7.4.280.0050.00316.56
7.4.270.0030.00316.56
7.4.260.0030.00313.20
7.4.250.0030.00516.47
7.4.240.0070.00016.44
7.4.230.0040.00416.53
7.4.220.0020.00516.43
7.4.210.0070.00616.48
7.4.200.0070.00016.34
7.4.140.0110.01017.22
7.4.130.0150.01017.16
7.4.120.0170.01117.13
7.4.110.0160.00917.00
7.4.100.0200.00617.09
7.4.90.0140.01217.13
7.4.80.0160.01117.06
7.4.70.0140.00917.06
7.4.60.0200.00417.11
7.4.50.0140.00917.12
7.4.40.0210.00517.04
7.4.30.0150.01117.16
7.4.20.0160.01117.13
7.4.10.0130.01417.11
7.4.00.0080.01217.04
7.3.330.0030.00616.25
7.3.320.0050.00013.18
7.3.310.0030.00316.18
7.3.300.0060.00016.23
7.3.290.0020.01116.31
7.3.260.0200.00617.18
7.3.250.0170.01117.03
7.3.240.0170.00717.03
7.3.230.0150.01117.08
7.3.220.0200.00517.13
7.3.210.0150.01317.21
7.3.200.0210.00716.98
7.3.190.0140.01017.03
7.3.180.0180.00817.03
7.3.170.0190.00817.04
7.3.160.0200.00817.01
7.3.150.0160.01217.14
7.3.140.0130.01517.00
7.3.130.0200.01017.10
7.3.120.0170.01117.11
7.3.110.0190.00817.06
7.3.100.0200.00817.01
7.3.90.0160.00917.03
7.3.80.0240.00417.11
7.3.70.0180.01317.03
7.3.60.0170.01117.11
7.3.50.0170.00816.99
7.3.40.0130.01217.10
7.3.30.0130.01017.11
7.3.20.0180.00817.14
7.3.10.0190.00617.05
7.3.00.0260.00816.96

preferences:
27.93 ms | 403 KiB | 5 Q