3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public string $bar = "baz"; public const LOREM = "ipsum"; public static string $abc = "def"; } $test = Foo::class; echo (new $test)->bar; echo PHP_EOL; echo $test::LOREM; echo PHP_EOL; echo $test::$abc;

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.0070.00119.63
8.5.20.0100.00820.19
8.5.10.0140.00716.57
8.5.00.0140.00719.92
8.4.180.0130.00919.61
8.4.170.0110.01123.85
8.4.160.0140.00723.77
8.4.150.0030.00014.05
8.4.140.0130.00717.30
8.4.130.0110.01018.60
8.4.120.0080.00820.23
8.4.110.0130.01018.75
8.4.100.0110.00918.64
8.4.90.0100.01020.66
8.4.80.0060.00618.97
8.4.70.0150.00619.02
8.4.60.0110.00918.77
8.4.50.0020.00618.95
8.4.40.0080.00817.59
8.4.30.0070.01120.62
8.4.20.0150.00419.30
8.4.10.0060.00319.35
8.3.300.0110.01018.31
8.3.290.0120.00918.43
8.3.280.0110.00920.16
8.3.270.0130.00616.39
8.3.260.0130.00616.50
8.3.250.0070.00217.00
8.3.240.0100.00816.59
8.3.230.0050.00416.51
8.3.220.0070.00818.98
8.3.210.0120.00616.63
8.3.200.0050.00416.50
8.3.190.0030.00517.01
8.3.180.0110.00718.96
8.3.170.0100.01016.54
8.3.160.0070.01022.79
8.3.150.0100.01017.20
8.3.140.0080.00020.70
8.3.130.0000.00818.25
8.3.120.0090.00619.05
8.3.110.0090.00020.94
8.3.100.0160.00016.48
8.3.90.0400.00826.77
8.3.80.0430.00626.77
8.3.70.0380.00626.77
8.3.60.0310.00526.77
8.3.50.0410.00626.77
8.3.40.0320.00426.77
8.3.30.0240.01226.77
8.3.20.0290.01026.77
8.3.10.0320.00926.77
8.3.00.0370.00726.77
8.2.300.0090.01218.14
8.2.290.0090.00920.67
8.2.280.0120.00818.42
8.2.270.0040.00416.43
8.2.260.0080.00818.52
8.2.250.0040.00416.54
8.2.240.0000.00917.22
8.2.230.0060.00322.58
8.2.220.0060.00324.06
8.2.210.0310.00826.77
8.2.200.0320.00926.77
8.2.190.0280.00726.77
8.2.180.0310.00226.77
8.2.170.0310.00926.77
8.2.160.0360.00626.77
8.2.150.0370.00826.77
8.2.140.0360.00826.77
8.2.130.0350.00726.77
8.2.120.0320.00726.77
8.2.110.0470.00226.77
8.2.100.0330.01226.77
8.2.90.0260.00726.77
8.2.80.0280.00326.77
8.2.70.0270.01126.77
8.2.60.0340.00826.77
8.2.50.0280.01126.77
8.2.40.0300.00726.77
8.2.30.0280.00926.77
8.2.20.0440.00526.77
8.2.10.0310.01026.77
8.2.00.0300.01026.77
8.1.340.0080.01117.44
8.1.330.0120.00822.04
8.1.320.0130.00616.05
8.1.310.0040.00416.05
8.1.300.0100.00719.58
8.1.290.0370.01226.77
8.1.280.0310.01226.77
8.1.270.0280.01326.77
8.1.260.0330.00326.77
8.1.250.0350.00626.77
8.1.240.0260.00926.77
8.1.230.0230.00726.77
8.1.220.0280.00926.77
8.1.210.0310.00826.77
8.1.200.0290.00626.77
8.1.190.0260.00826.77
8.1.180.0320.00726.77
8.1.170.0320.00826.77
8.1.160.0320.00826.77
8.1.150.0300.01026.77
8.1.140.0270.00926.77
8.1.130.0300.00926.77
8.1.120.0320.00826.77
8.1.110.0420.00626.77
8.1.100.0250.00726.77
8.1.90.0210.00726.77
8.1.80.0220.01626.77
8.1.70.0270.01226.77
8.1.60.0350.00726.77
8.1.50.0320.00526.77
8.1.40.0320.00826.77
8.1.30.0320.01226.77
8.1.20.0290.01126.77
8.1.10.0310.00826.77
8.1.00.0310.00826.77

preferences:
55.45 ms | 978 KiB | 5 Q