3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types = 1); class HelloWorld { public function sayHello(?string $class): void { var_dump(new stdClass instanceof $class); } } (new HelloWorld)->sayHello(null);

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.5.00.0140.01019.85
8.4.150.0100.00416.94
8.4.140.0140.00817.47
8.4.130.0120.00917.92
8.4.120.0070.00820.70
8.4.110.0030.00622.48
8.4.100.0090.01017.80
8.4.90.0090.00618.19
8.4.80.0070.00218.12
8.4.70.0110.01018.20
8.4.60.0110.00519.80
8.4.50.0050.00318.66
8.4.40.0100.01017.88
8.4.30.0140.00422.62
8.4.20.0040.00419.79
8.4.10.0000.00819.55
8.3.280.0020.00114.05
8.3.270.0140.00516.64
8.3.260.0060.00416.57
8.3.250.0130.00618.92
8.3.240.0100.00816.52
8.3.230.0090.01016.35
8.3.220.0040.00417.36
8.3.210.0150.00916.63
8.3.200.0090.00516.66
8.3.190.0110.00816.86
8.3.180.0110.00816.84
8.3.170.0110.00718.90
8.3.160.0040.01416.57
8.3.150.0120.00418.60
8.3.140.0150.00316.59
8.3.130.0060.00316.84
8.3.120.0060.00320.70
8.3.110.0060.00320.94
8.3.100.0060.00924.06
8.3.90.0040.00426.77
8.3.80.0060.00318.43
8.3.70.0070.01116.75
8.3.60.0090.00916.63
8.3.50.0070.01418.49
8.3.40.0120.00320.42
8.3.30.0030.01021.86
8.3.20.0000.00824.18
8.3.10.0040.00424.66
8.3.00.0030.00626.16
8.2.290.0130.00622.04
8.2.280.0040.00716.87
8.2.270.0120.00617.00
8.2.260.0040.00420.16
8.2.250.0060.00316.85
8.2.240.0040.01219.10
8.2.230.0100.00022.58
8.2.220.0110.00737.54
8.2.210.0170.00326.77
8.2.200.0090.00018.26
8.2.190.0120.00616.63
8.2.180.0110.01116.50
8.2.170.0140.00719.00
8.2.160.0030.01022.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0050.00319.54
8.2.110.0100.01020.38
8.2.100.0150.00619.07
8.2.90.0140.00718.86
8.2.80.0000.01018.81
8.2.70.0060.01818.60
8.2.60.0180.00418.64
8.2.50.0150.00618.81
8.2.40.0070.00318.82
8.2.30.0180.00418.84
8.2.20.0100.01618.84
8.2.10.0030.00719.07
8.2.00.0060.00619.12
8.1.330.0110.00816.57
8.1.320.0120.00716.45
8.1.310.0110.00416.38
8.1.300.0120.00616.31
8.1.290.0060.00330.84
8.1.280.0070.00725.92
8.1.270.0060.00323.99
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0150.00618.45
8.1.230.0120.00918.25
8.1.220.0030.00718.54
8.1.210.0030.00619.87
8.1.200.0150.00418.41
8.1.190.0140.01018.25
8.1.180.0180.00418.38
8.1.170.0130.00718.35
8.1.160.0100.01418.75
8.1.150.0110.01120.50
8.1.140.0180.00318.26
8.1.130.0130.00618.34
8.1.120.0030.00718.50
8.1.110.0120.00618.46
8.1.100.0110.00418.45
8.1.90.0110.01118.41
8.1.80.0030.00718.46
8.1.70.0070.00318.67
8.1.60.0130.00720.39
8.1.50.0110.00720.41
8.1.40.0070.01120.57
8.1.30.0070.01020.77
8.1.20.0130.00320.52
8.1.10.0030.00620.48
8.1.00.0000.01620.31
8.0.300.0030.00719.73
8.0.290.0130.00319.68
8.0.280.0060.00319.83
8.0.270.0000.00919.68
8.0.260.0030.00719.70
8.0.250.0060.00318.03
8.0.240.0070.00318.42
8.0.230.0030.00620.31
8.0.220.0070.00419.60
8.0.210.0070.01119.50
8.0.200.0050.00519.87
8.0.190.0030.00619.70
8.0.180.0070.00319.79
8.0.170.0030.00619.92
8.0.160.0060.00319.75
8.0.150.0090.00019.76
8.0.140.0030.00619.61
8.0.130.0120.00319.61
8.0.120.0090.00019.57
8.0.110.0000.01519.62
8.0.100.0030.00617.94
8.0.90.0100.00317.88
8.0.80.0150.00317.88
8.0.70.0110.00417.84
8.0.60.0100.01017.71
8.0.50.0100.00717.71
8.0.30.0000.00917.89
8.0.20.0170.00318.00
8.0.10.0030.00618.02

preferences:
95.08 ms | 403 KiB | 5 Q