3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace A; $t1 = hrtime(true); for ($i = 0; $i < 6000000; $i++) { count([]); } $t2 = hrtime(true); $t3 = hrtime(true); for ($i = 0; $i < 6000000; $i++) { \count([]); } $t4 = hrtime(true); echo "Without import: " . (($t2 - $t1) / 1000000) . " ms\n"; echo "With import : " . (($t4 - $t3) / 1000000) . " ms\n";

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.0030.09116.57
8.3.120.0130.09518.92
8.3.110.0030.09320.94
8.3.100.0070.08516.62
8.3.90.0100.08526.77
8.3.80.0100.09919.36
8.3.70.0130.17318.31
8.3.60.0100.19818.53
8.3.50.0070.15118.24
8.3.40.0070.17018.85
8.3.30.0100.17018.46
8.3.20.0070.12622.08
8.3.10.0100.11120.09
8.3.00.0070.09022.43
8.2.250.0130.09116.43
8.2.240.0070.09217.37
8.2.230.0100.10922.58
8.2.220.0030.09024.06
8.2.210.0100.08126.77
8.2.200.0070.10018.88
8.2.190.0070.16616.63
8.2.180.0130.17018.29
8.2.170.0030.16922.96
8.2.160.0100.20421.20
8.2.150.0100.09624.18
8.2.140.0070.09024.66
8.2.130.0100.10726.16
8.2.120.0030.09120.69
8.2.110.0130.14819.21
8.2.100.0060.11417.72
8.2.90.0070.10820.64
8.2.80.0000.11619.65
8.2.70.0070.11017.63
8.2.60.0030.11417.75
8.2.50.0030.11217.80
8.2.40.0030.11519.66
8.2.30.0030.11617.74
8.2.20.0100.13417.96
8.2.10.0030.11419.41
8.2.00.0030.11619.34
8.1.300.0130.10718.14
8.1.290.0000.12230.84
8.1.280.0100.16825.92
8.1.270.0030.09322.60
8.1.260.0100.12426.35
8.1.250.0100.08528.09
8.1.240.0070.15319.45
8.1.230.0070.11120.88
8.1.220.0070.11117.88
8.1.210.0070.11320.76
8.1.200.0030.11317.22
8.1.190.0030.11317.13
8.1.180.0100.10818.10
8.1.170.0070.12217.62
8.1.160.0000.11718.84
8.1.150.0000.11418.89
8.1.140.0030.11120.80
8.1.130.0030.11220.02
8.1.120.0000.11317.46
8.1.110.0030.12117.51
8.1.100.0000.15517.47
8.1.90.0030.11017.34
8.1.80.0030.12417.48
8.1.70.0030.11217.48
8.1.60.0000.16717.45
8.1.50.0030.16317.51
8.1.40.0030.16317.52
8.1.30.0000.16617.48
8.1.20.0000.16717.57
8.1.10.0030.16417.50
8.1.00.0030.16317.45
8.0.300.0030.12219.98
8.0.290.0030.12016.88
8.0.280.0030.11917.98
8.0.270.0000.12817.99
8.0.260.0070.11419.96
8.0.250.0060.15017.07
8.0.240.0070.11717.02
8.0.230.0030.12016.98
8.0.220.0000.12516.86
8.0.210.0100.11416.84
8.0.200.0030.13617.02
8.0.190.0070.16817.05
8.0.180.0130.16017.02
8.0.170.0070.16916.98
8.0.160.0030.17017.01
8.0.150.0000.17416.98
8.0.140.0000.17316.96
8.0.130.0000.17213.38
8.0.120.0030.17116.93
8.0.110.0030.17416.88
8.0.100.0070.16617.01
8.0.90.0000.17816.81
8.0.80.0030.21116.95
8.0.70.0000.17416.99
8.0.60.0030.17116.95
8.0.50.0030.17416.85
8.0.30.0170.15316.86
8.0.20.0130.21017.01
8.0.10.0030.17417.01
8.0.00.0130.21616.67
7.4.330.0000.16015.55
7.4.320.0070.15216.44
7.4.300.0030.15416.53
7.4.290.0030.20716.41
7.4.280.0070.20916.55
7.4.270.0030.20816.46
7.4.260.0000.20813.16
7.4.250.0070.20716.53
7.4.240.0020.21016.52
7.4.230.0000.21116.65
7.4.220.0020.20616.45
7.4.210.0070.27916.45
7.4.200.0030.21416.57
7.4.130.0030.27016.39
7.4.120.0130.33216.36
7.4.110.0100.29016.45
7.4.100.0100.29316.51
7.4.90.0130.26716.38
7.4.80.0060.27019.39
7.4.70.0030.26816.47
7.4.60.0160.26616.44
7.4.50.0410.22116.39
7.4.40.0130.26516.27
7.4.00.0130.24514.73
7.3.330.0100.27316.32
7.3.320.0030.22713.07
7.3.310.0030.22816.10
7.3.300.0030.22616.15
7.3.290.0100.30116.26
7.3.280.0090.42716.29
7.3.260.0140.32316.46
7.3.240.0100.30616.30
7.3.230.0100.30016.54
7.3.210.0100.30416.38
7.3.200.0100.32616.67
7.3.190.0220.36216.24
7.3.180.0090.30316.25
7.3.170.0190.46016.62
7.3.160.0030.33016.54
7.3.90.0130.39114.80
7.3.80.0160.40514.71
7.3.70.0100.31814.66
7.3.60.0100.32814.54
7.3.50.0070.32314.84
7.3.40.0100.34714.85
7.3.30.0070.32514.80
7.3.20.0190.40314.84
7.3.10.0060.35914.82
7.3.00.0130.36514.86
7.2.330.0090.00916.67
7.2.320.0110.00616.53
7.2.310.0120.00616.50
7.2.300.0090.01216.57
7.2.290.0070.01016.32
7.2.220.0060.00915.11
7.2.210.0090.00614.49
7.2.200.0110.00814.82
7.2.190.0070.00714.89
7.2.180.0080.00814.88
7.2.170.0030.01314.89
7.2.160.0070.01014.75
7.2.150.0140.00615.00
7.2.140.0090.01214.64
7.2.130.0130.00614.83
7.2.120.0070.01014.91
7.2.110.0040.01314.70
7.2.100.0100.00615.07
7.2.90.0070.01015.06
7.2.80.0100.01315.09
7.2.70.0070.01014.80
7.2.60.0100.01014.88
7.2.50.0090.00914.79
7.2.40.0100.01014.81
7.2.30.0090.00915.09
7.2.20.0160.00615.09
7.2.10.0130.01014.87
7.2.00.0120.00614.80
7.1.320.0060.01413.59
7.1.310.0130.00313.90
7.1.300.0130.00313.58
7.1.290.0090.00913.86
7.1.280.0480.01713.59
7.1.270.0140.00513.76
7.1.260.0080.01213.84
7.1.250.0100.00613.86

preferences:
18.26 ms | 403 KiB | 5 Q