3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Hoge { function save() { return false; } } $x = new Hoge(); $x->save() or throw new \Exception("!!!");

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.40.0150.00018.92
8.3.30.0140.00020.08
8.3.20.0040.00420.20
8.3.10.0040.00422.06
8.3.00.0080.00022.50
8.2.170.0120.00322.96
8.2.160.0120.00322.25
8.2.150.0040.01124.18
8.2.140.0110.00324.66
8.2.130.0070.00726.16
8.2.120.0070.00720.86
8.2.110.0100.00622.25
8.2.100.0100.00018.88
8.1.270.0050.00323.99
8.1.260.0060.00926.35
8.1.250.0070.01028.09
8.1.240.0070.00318.57
8.1.230.0090.00018.43
5.4.240.0060.03712.41
5.4.230.0110.04212.39
5.4.220.0150.04412.39
5.4.210.0120.04712.39
5.4.200.0110.04312.39
5.4.190.0100.04112.38
5.4.180.0100.04112.39
5.4.170.0110.04212.40
5.4.160.0110.04112.39
5.4.150.0190.05212.38
5.4.140.0130.04112.08
5.4.130.0120.04112.06
5.4.120.0210.05212.02
5.4.110.0100.04212.02
5.4.100.0090.04612.02
5.4.90.0120.04112.02
5.4.80.0120.04312.02
5.4.70.0130.03712.02
5.4.60.0160.03612.01
5.4.50.0120.04012.01
5.4.40.0120.03812.00
5.4.30.0100.04312.00
5.4.20.0120.03912.00
5.4.10.0140.03612.00
5.4.00.0120.03711.49
5.3.280.0150.03912.71
5.3.270.0150.04112.72
5.3.260.0110.04712.72
5.3.250.0140.04212.72
5.3.240.0130.04412.72
5.3.230.0130.04312.71
5.3.220.0110.04312.68
5.3.210.0120.04312.68
5.3.200.0190.06412.68
5.3.190.0100.04512.68
5.3.180.0120.04212.68
5.3.170.0110.04112.67
5.3.160.0090.04312.67
5.3.150.0140.03912.68
5.3.140.0120.04112.66
5.3.130.0100.04312.65
5.3.120.0140.06212.66
5.3.110.0130.04612.66
5.3.100.0100.04412.12
5.3.90.0220.06112.09
5.3.80.0120.04112.09
5.3.70.0100.04312.08
5.3.60.0090.04412.07
5.3.50.0140.03812.01
5.3.40.0110.04112.02
5.3.30.0150.05311.97
5.3.20.0130.03811.75
5.3.10.0130.03811.71
5.3.00.0120.03911.70

preferences:
37.39 ms | 400 KiB | 5 Q