3v4l.org

run code in 500+ PHP versions simultaneously
<?php declare(strict_types=1); class Foo {} function type_null( null $a ) { return $a; } function type_array( array $a ) { return $a; } function type_Foo( Foo $a ) { return $a; } function return_type_array( array $a ): array { return null; } function return_type_null( array $a ): null { return $a; } type_null( 'a' ); //type_array( 'a' ); //type_Foo( new stdClass() ); //return_type_array( array() ); //return_type_null( array() );

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.90.0150.00616.99
8.5.80.0070.00117.01
8.5.70.0050.00217.10
8.5.60.0120.00616.99
8.5.50.0100.00916.97
8.5.30.0080.00919.57
8.5.20.0100.00720.00
8.5.10.0120.00817.01
8.5.00.0120.00919.92
8.4.240.0100.01219.43
8.4.230.0050.00419.65
8.4.220.0060.00219.70
8.4.210.0050.00421.42
8.4.180.0120.01119.57
8.4.170.0120.01023.82
8.4.160.0120.01023.72
8.4.150.0100.00416.89
8.4.140.0180.00517.70
8.4.130.0070.00318.90
8.4.120.0100.01024.04
8.4.110.0100.00818.86
8.4.100.0090.00318.88
8.4.90.0110.00622.38
8.4.80.0110.01118.75
8.4.70.0130.00717.96
8.4.60.0140.00818.97
8.4.50.0120.00817.59
8.3.330.0150.00618.46
8.3.320.0090.01218.37
8.3.310.0090.00918.56
8.3.300.0070.00319.18
8.3.290.0130.00820.82
8.3.280.0160.00718.42
8.3.270.0150.00516.66
8.3.260.0110.00816.77
8.3.250.0070.00718.97
8.3.240.0100.00616.84
8.3.230.0100.00916.55
8.3.220.0090.00918.74
8.3.210.0110.00716.76
8.3.200.0110.00916.51
8.3.190.0100.01016.39
8.3.180.0030.00516.76
8.3.50.0040.00416.57
8.2.320.0130.00918.05
8.2.310.0080.01117.93
8.2.300.0140.00718.87
8.2.290.0080.01220.35
8.2.280.0120.00716.55
8.1.340.0090.00919.71

preferences:
65.67 ms | 690 KiB | 5 Q