3v4l.org

run code in 300+ PHP versions simultaneously
<?php $time = microtime(true); for ($i = 0; $i <= 10000000; $i++) { chr(0); } $time2 = microtime(true); echo $time2 - $time; echo "\r\n"; class FOO { const BAR = ''; public function stats() { $time = microtime(true); for ($i = 0; $i <= 10000000; $i++) { self::BAR; } $time2 = microtime(true); echo $time2 - $time; } } $foo = new FOO(); $foo->stats();

Abusive script

This script was stopped while abusing our resources

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.2.50.0050.07219.52
8.2.40.0100.07319.52
8.2.30.0150.06319.52
8.2.20.0070.07219.52
8.2.10.0070.07119.52
8.2.00.0220.05619.52
8.1.180.0170.06719.52
8.1.170.0130.07119.52
8.1.160.0040.08219.52
8.1.150.0100.07419.52
8.1.140.0100.07419.52
8.1.130.0210.06419.52
8.1.120.0110.07419.52
8.1.110.0100.07719.52
8.1.100.0030.08119.52
8.1.90.0140.07019.52
8.1.80.0100.07319.52
8.1.70.0070.07619.52
8.1.60.0070.07819.52
8.1.50.0140.07119.52
8.1.40.0140.07019.52
8.1.30.0150.07019.52
8.1.20.0110.07419.52
8.1.10.0100.07419.52
8.1.00.0160.07019.52
8.0.280.0110.07419.52
8.0.270.0070.08019.52
8.0.260.0070.07819.52
8.0.250.0070.07719.52
8.0.240.0040.08019.52
8.0.230.0170.06719.52
8.0.220.0070.07719.52
8.0.210.0160.06719.52
8.0.200.0110.07419.52
8.0.190.0070.07719.52
8.0.180.0100.07419.52
8.0.170.0150.06919.52
8.0.160.0160.07019.52
8.0.150.0070.07819.52
8.0.140.0070.07719.52
8.0.130.0070.07819.52
8.0.120.0140.07019.52
8.0.110.0070.07619.52
8.0.100.0130.07119.52
8.0.90.0110.07219.52
8.0.80.0110.07719.52
8.0.70.0130.07019.52
8.0.60.0100.07319.52
8.0.50.0140.07019.52
8.0.30.0100.07319.52
8.0.20.0070.07619.52
8.0.10.0030.08119.52
8.0.00.0100.07419.52
7.4.330.0060.09019.52
7.4.320.0190.08719.52
7.4.300.0160.08619.52
7.4.290.0130.08919.52
7.4.280.0140.08919.52
7.4.270.0190.08319.52
7.4.260.0070.09819.52
7.4.250.0040.10319.52
7.4.240.0130.09119.52
7.4.230.0100.09419.52
7.4.220.0190.08619.52
7.4.210.0130.09019.52
7.4.200.0100.09619.52
7.4.190.0100.09419.52
7.4.180.0100.09519.52
7.4.160.0030.09719.52
7.4.150.0130.08819.52
7.4.140.0030.10119.52
7.4.130.0040.09719.52
7.4.120.0100.09219.52
7.4.110.0070.09619.52
7.4.100.0040.09819.52
7.4.90.0160.08419.52
7.4.80.0100.09319.52
7.4.70.0160.08519.52
7.4.60.0100.09019.52
7.4.50.0100.09019.52
7.4.40.0110.09219.52
7.4.30.0070.09819.52
7.4.20.0100.09119.52
7.4.10.0070.09519.52
7.4.00.0070.09419.52
7.3.330.0030.18319.52
7.3.320.0130.19219.52
7.3.310.0070.21119.52
7.3.300.0160.18419.52
7.3.290.0070.18419.52
7.3.280.0140.13019.52
7.3.270.0210.12719.52
7.3.260.0190.15119.52
7.3.250.0070.14319.52
7.3.240.0100.19319.52
7.3.230.0070.14419.52
7.3.220.0070.13119.52
7.3.210.0130.12519.52
7.3.200.0060.13419.52
7.3.190.0040.13019.52
7.3.180.0100.12619.52
7.3.170.0160.16619.52
7.3.160.0160.12819.52
7.3.150.0190.17319.52
7.3.140.0100.12919.52
7.3.130.0130.12819.52
7.3.120.0070.14419.52
7.3.110.0130.13119.52
7.3.100.0130.13819.52
7.3.90.0160.11719.52
7.3.80.0130.11919.52
7.3.70.0100.12119.52
7.3.60.0170.12119.52
7.3.50.0130.15219.52
7.3.40.0070.12619.52
7.3.30.0160.16819.52
7.3.20.0100.12819.52
7.3.10.0070.13219.52
7.3.00.0130.12119.52
7.2.340.0130.14119.52
7.2.330.0070.14219.52
7.2.320.0160.13619.52
7.2.310.0070.13019.52
7.2.300.0000.13219.52
7.2.290.0100.14219.52
7.2.280.0040.14819.52
7.2.270.0130.13719.52
7.2.260.0160.13619.52
7.2.250.0130.13419.52
7.2.240.0100.12919.52
7.2.230.0100.13419.52
7.2.220.0160.13619.52
7.2.210.0060.14919.52
7.2.200.0030.14219.52
7.2.190.0070.18119.52
7.2.180.0100.15119.52
7.2.170.0030.17419.52
7.2.160.0100.17419.52
7.2.150.0250.15119.52
7.2.140.0140.17919.52
7.2.130.0140.16619.52
7.2.120.0190.16219.52
7.2.110.0070.19419.52
7.2.100.0230.14219.52
7.2.90.0140.17019.52
7.2.80.0100.17119.52
7.2.70.0130.16819.52
7.2.60.0170.16519.52
7.2.50.0130.16819.52
7.2.40.0890.22918.55
7.2.30.0810.20518.64
7.2.20.0990.24318.72
7.2.10.0740.22018.71
7.2.00.0630.19418.74
7.1.330.0050.16419.52
7.1.320.0100.16519.52
7.1.310.0070.17019.52
7.1.300.0100.16419.52
7.1.290.0130.17919.52
7.1.280.0070.18519.52
7.1.270.0100.16619.52
7.1.260.0130.16419.52
7.1.250.0130.18719.52
7.1.240.0130.16519.52
7.1.230.0030.19919.52
7.1.220.0130.18219.52
7.1.210.0100.19919.52
7.1.200.0130.18919.52
7.1.190.0070.19919.52
7.1.180.0130.16319.52
7.1.170.0130.16319.52
7.1.160.0680.22318.06
7.1.150.0900.26118.04
7.1.140.0860.23718.13
7.1.130.0550.21418.27
7.1.120.0570.21918.14
7.1.110.0940.22218.03
7.1.100.0900.21018.03
7.1.90.0750.20917.89
7.1.80.0500.32617.72
7.1.70.0620.30517.36
7.1.60.0610.33726.22
7.1.50.0870.22526.21
7.1.40.0940.21626.05
7.1.30.0720.21026.03
7.1.20.0810.22726.13
7.1.10.0680.22317.21
7.1.00.0620.22717.11
7.0.330.0090.43819.52
7.0.320.0100.43919.52
7.0.310.0160.42819.52
7.0.300.0160.43119.52
7.0.290.0130.42219.52
7.0.280.0160.42119.52
7.0.270.0130.44619.52
7.0.260.0030.44019.52
7.0.250.0130.40219.52
7.0.240.0130.39819.52
7.0.230.0130.42019.52
7.0.220.0200.41019.52
7.0.210.0070.42119.52
7.0.200.0100.42819.52
7.0.190.0100.46319.52
7.0.180.0130.43119.52
7.0.170.0070.41719.52
7.0.160.0070.43519.52
7.0.150.0070.44119.52
7.0.140.0130.43519.52
7.0.130.0170.43419.52
7.0.120.0100.43619.52
7.0.110.0200.41619.52
7.0.100.0100.44919.52
7.0.90.0070.41019.52
7.0.80.0130.40719.52
7.0.70.0130.42319.52
7.0.60.0130.41319.52
7.0.50.0030.43419.52
7.0.40.0000.43419.52
7.0.30.0100.43719.52
7.0.20.0100.44419.52
7.0.10.0200.42619.52
7.0.00.0100.43519.52
5.6.400.0101.62619.52
5.6.390.0071.70619.52
5.6.380.0161.61019.52
5.6.370.0171.58319.52
5.6.360.0201.58919.52
5.6.350.0101.55619.52
5.6.340.0071.58619.52
5.6.330.0101.57719.52
5.6.320.0071.59419.52
5.6.310.0171.65419.52
5.6.300.0031.64619.52
5.6.290.0101.59219.52
5.6.280.0001.72119.52
5.6.270.0131.58619.52
5.6.260.0131.65319.52
5.6.250.0031.64719.52
5.6.240.0071.74819.52
5.6.230.0131.55719.52
5.6.220.0071.62619.52
5.6.210.0101.69019.52
5.6.200.0101.59819.52
5.6.190.0101.64819.52
5.6.180.0131.56019.52
5.6.170.0171.60119.52
5.6.160.0101.64219.52
5.6.150.0201.65019.52
5.6.140.0071.75619.52
5.6.130.0071.74619.52
5.6.120.0131.67519.52
5.6.110.0171.62719.52
5.6.100.0101.59719.52
5.6.90.0071.61619.52
5.6.80.0071.54419.52
5.6.70.0031.62019.52
5.6.60.0031.66019.52
5.6.50.0131.73319.52
5.6.40.0031.64919.52
5.6.30.0101.67219.52
5.6.20.0071.68619.52
5.6.10.0131.75019.52
5.6.00.0131.58919.52

preferences:
30.37 ms | 403 KiB | 5 Q