3v4l.org

run code in 300+ PHP versions simultaneously
<?php function log_error( $type, $message, $file, $line ) { $error_reporting = error_reporting(); echo $error_reporting . ' - ' . ( $error_reporting & $type ) . PHP_EOL; } set_error_handler( 'log_error' ); trigger_error( 'A', E_USER_NOTICE ); @trigger_error( 'A', E_USER_NOTICE ); $constants = ['E_ERROR', 'E_USER_ERROR', 'E_USER_WARNING', 'E_USER_NOTICE', 'E_DEPRECATED', 'E_USER_DEPRECATED', 'E_RECOVERABLE_ERROR', 'E_ALL']; foreach ( $constants as $constant ) { echo $constant . ': ' . constant( $constant ) . PHP_EOL; error_reporting( constant( $constant ) ); trigger_error( 'A', E_USER_NOTICE ); @trigger_error( 'A', E_USER_NOTICE ); }

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.4.140.0120.01017.76
8.4.130.0150.00717.64
8.4.120.0110.00920.69
8.4.110.0140.00622.34
8.4.100.0150.00817.49
8.4.90.0130.00717.77
8.4.80.0130.00818.85
8.4.70.0050.00417.82
8.3.260.0110.00916.79
8.3.250.0050.00318.92
8.3.240.0110.01016.46
8.3.230.0110.00916.61
8.3.220.0120.00716.97
8.3.210.0040.00416.97
8.3.180.0110.00816.97
8.3.50.0110.00816.97
8.2.290.0080.00920.60
7.4.330.0270.01116.97

preferences:
33.81 ms | 403 KiB | 5 Q