3v4l.org

run code in 500+ PHP versions simultaneously
<?php function demo( MissingClass|string $e ) { echo $e; } function demo2(): MissingClass|string { return "Or here\n"; } class WithProp { public MissingClass|string $val; public function __construct() { $this->val = "Or here either\n"; } } demo( "No errors here\n" ); print( demo2() ); $d = new WithProp(); echo $d->val;

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.0140.00717.96
8.5.20.0090.00919.99
8.5.10.0040.00516.70
8.5.00.0110.01019.98
8.4.180.0120.00921.96
8.4.170.0110.01023.88
8.4.160.0170.01123.86
8.4.150.0040.00916.87
8.4.140.0130.00917.68
8.4.130.0030.00618.79
8.4.120.0060.00324.13
8.4.110.0050.00420.63
8.4.100.0120.00917.62
8.4.90.0130.00818.45
8.4.80.0040.00619.45
8.4.70.0410.01218.14
8.4.60.0370.01318.14
8.4.50.0420.00818.14
8.4.40.0460.00718.14
8.4.30.0480.00818.14
8.4.20.0490.00618.14
8.4.10.0490.01118.14
8.3.300.0100.00920.80
8.3.290.0100.01420.72
8.3.280.0150.00518.13
8.3.270.0090.00916.69
8.3.260.0110.00816.69
8.3.250.0130.00619.01
8.3.240.0060.00617.04
8.3.230.0060.00216.73
8.3.220.0040.00416.64
8.3.210.0270.00718.14
8.3.200.0220.00518.14
8.3.190.0150.00818.14
8.3.180.0190.00318.14
8.3.170.0230.00518.14
8.3.160.0230.00518.14
8.3.150.0210.00418.14
8.3.140.0190.00618.14
8.3.130.0150.00518.14
8.3.120.0180.01018.14
8.3.110.0140.00618.14
8.3.100.0200.00418.14
8.3.90.0180.00518.14
8.3.80.0160.00718.14
8.3.70.0200.00418.14
8.3.60.0170.00718.14
8.3.50.0290.00118.14
8.3.40.0200.00618.14
8.3.30.0130.00518.14
8.3.20.0320.01118.14
8.3.10.0360.00918.14
8.3.00.0340.01118.14
8.2.300.0090.01017.88
8.2.290.0100.00920.48
8.2.280.0280.00518.14
8.2.270.0270.01018.14
8.2.260.0360.00718.14
8.2.250.0350.00718.14
8.2.240.0340.00918.14
8.2.230.0320.01018.14
8.2.220.0370.00518.14
8.2.210.0330.00818.14
8.2.200.0400.00718.14
8.2.190.0340.01018.14
8.2.180.0330.01018.14
8.2.170.0400.00418.14
8.2.160.0410.00518.14
8.2.150.0360.00918.14
8.2.140.0380.00818.14
8.2.130.0370.00718.14
8.2.120.0370.00818.14
8.2.110.0330.00618.14
8.2.100.0290.00818.14
8.2.90.0340.01018.14
8.2.80.0360.00818.14
8.2.70.0380.00618.14
8.2.60.0330.01018.14
8.2.50.0360.01018.14
8.2.40.0410.00618.14
8.2.30.0330.00718.14
8.2.20.0320.01118.14
8.2.10.0330.00818.14
8.2.00.0300.00918.14
8.1.340.0090.01221.83

preferences:
43.33 ms | 835 KiB | 5 Q