3v4l.org

run code in 500+ PHP versions simultaneously
<?php class Foo { public function __construct( public readonly string $foo, public readonly int $bar, public readonly array $baz, ) {} } var_dump(new Foo('foo', 42, []));

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.30.0100.00919.47
8.5.20.0070.01220.18
8.5.10.0100.01016.79
8.5.00.0120.01019.89
8.4.180.0110.01125.51
8.4.170.0110.01123.95
8.4.160.0150.00623.77
8.4.150.0060.00616.92
8.4.140.0120.00917.60
8.4.130.0110.00517.62
8.4.120.0080.01224.26
8.4.110.0120.00822.69
8.4.100.0070.00218.87
8.4.90.0110.01018.53
8.4.80.0120.00818.76
8.4.70.0050.00318.15
8.4.60.0130.00718.70
8.4.50.0110.00618.65
8.4.40.0100.01017.78
8.4.30.0060.01220.76
8.4.20.0160.00619.71
8.4.10.0050.00319.25
8.3.300.0140.00720.65
8.3.290.0090.01120.72
8.3.280.0130.00718.29
8.3.270.0110.01016.64
8.3.260.0120.00716.61
8.3.250.0060.00318.87
8.3.240.0120.00617.36
8.3.230.0120.00816.59
8.3.220.0120.00618.82
8.3.210.0050.00318.44
8.3.200.0070.00216.73
8.3.190.0050.00417.19
8.3.180.0100.01018.76
8.3.170.0140.00418.76
8.3.160.0090.00918.61
8.3.150.0120.00616.45
8.3.140.0040.00416.46
8.3.130.0080.00018.33
8.3.120.0080.00018.91
8.3.110.0050.00520.94
8.3.100.0090.00616.61
8.3.90.0060.00316.40
8.3.50.0030.00616.88
8.3.20.0090.01123.45
8.3.10.0080.01123.56
8.3.00.0150.00519.84
8.2.300.0120.00818.63
8.2.290.0120.00720.39
8.2.280.0100.01019.93
8.2.270.0070.00718.51
8.2.260.0120.00617.08
8.2.250.0030.00616.61
8.2.240.0090.00017.33
8.2.230.0050.00322.58
8.2.220.0080.00016.51
8.2.210.0080.00016.68
8.2.150.0080.00919.96
8.2.140.0090.00921.36
8.2.130.0110.00621.30
8.2.120.0070.01020.07
8.2.110.0130.00420.05
8.2.100.0150.00319.80
8.2.90.0080.01019.64
8.2.80.0060.01320.10
8.2.70.0120.00719.66
8.2.60.0130.00519.54
8.2.50.0070.01019.92
8.2.40.0140.00319.64
8.2.30.0080.00719.49
8.2.20.0120.00719.43
8.2.10.0080.00819.54
8.2.00.0090.00719.54
8.1.340.0130.00619.81
8.1.330.0130.00522.09
8.1.320.0100.00917.72
8.1.310.0000.01418.43
8.1.300.0040.00416.31
8.1.270.0120.00722.88
8.1.260.0080.01023.06
8.1.250.0110.00622.95
8.1.240.0110.00519.46
8.1.230.0090.00619.39
8.1.220.0090.00719.76
8.1.210.0150.00219.24
8.1.200.0090.00519.55
8.1.190.0110.00519.39
8.1.180.0120.00719.27
8.1.170.0140.00319.47
8.1.160.0100.00619.31
8.1.150.0120.00319.64
8.1.140.0100.00719.33
8.1.130.0150.00019.52
8.1.120.0030.01219.44
8.1.110.0090.00519.44
8.1.100.0040.01119.49
8.1.90.0050.01019.46
8.1.80.0080.00820.56
8.1.70.0090.00919.35
8.1.60.0090.00619.53
8.1.50.0110.00519.48
8.1.40.0080.00619.64
8.1.30.0070.00719.67
8.1.20.0090.00520.79
8.1.10.0110.00419.54
8.1.00.0080.00719.36

preferences:
44.32 ms | 934 KiB | 5 Q