3v4l.org

run code in 300+ PHP versions simultaneously
<?php function wp_trigger_error( $function_name, $message, $error_level = E_USER_NOTICE ) { if ( '' !== $function_name ) { $message = sprintf( '%s(): %s', $function_name, $message ); } trigger_error( $message, $error_level ); } function test_triggering_error() { wp_trigger_error( __FUNCTION__, 'message should include the function that triggered the error.' ); } wp_trigger_error( '', 'Message should not include the function as this is not within a function scope.' ); test_triggering_error();

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.3.110.0150.00420.94
8.3.100.0060.00316.68
8.3.90.0060.00316.73
8.3.80.0090.00018.27
8.3.70.0180.00018.19
8.3.60.0110.00416.61
8.3.50.0070.01416.97
8.3.40.0100.01021.80
8.3.30.0090.00918.84
8.3.20.0040.00424.18
8.3.10.0000.00824.66
8.3.00.0060.00326.16
8.2.230.0070.00322.58
8.2.220.0070.01024.06
8.2.210.0130.00626.77
8.2.200.0070.00316.72
8.2.190.0110.00416.63
8.2.180.0070.01116.50
8.2.170.0120.00318.89
8.2.160.0120.00622.96
8.2.150.0070.00025.66
8.2.140.0050.00324.66
8.2.130.0050.00226.16
8.2.120.0040.00421.02
8.2.110.0030.00720.52
8.2.100.0320.00317.69
8.2.90.0310.00317.69
8.2.80.0230.00717.69
8.2.70.0300.00317.69
8.2.60.0240.00617.69
8.2.50.0300.00017.69
8.2.40.0250.00417.69
8.2.30.0250.00217.69
8.2.20.0200.00717.69
8.2.10.0270.00417.69
8.2.00.0200.00717.69
8.1.290.0060.00318.88
8.1.280.0070.00725.92
8.1.270.0060.00323.77
8.1.260.0030.00526.35
8.1.250.0080.00028.09
8.1.240.0090.00019.00
8.1.230.0140.00518.67
8.1.220.0250.00317.69
8.1.210.0290.00017.69
8.1.200.0240.00317.69
8.1.190.0180.01117.69
8.1.180.0300.00017.69
8.1.170.0240.00317.69
8.1.160.0200.00617.69
8.1.150.0220.00617.69
8.1.140.0210.00717.69
8.1.130.0280.00017.69
8.1.120.0210.00617.69
8.1.110.0250.00317.69
8.1.100.0240.00817.69
8.1.90.0220.00517.69
8.1.80.0150.01117.69
8.1.70.0190.00817.69
8.1.60.0280.00017.69
8.1.50.0160.01217.69
8.1.40.0220.00417.69
8.1.30.0280.00017.69
8.1.20.0200.00817.69
8.1.10.0220.00617.69
8.1.00.0250.00717.69
8.0.300.0240.00617.69
8.0.290.0250.00317.69
8.0.280.0170.01017.69
8.0.270.0120.01617.69
8.0.260.0300.00017.69
8.0.250.0170.01017.69
8.0.240.0190.00617.69
8.0.230.0180.00917.69
8.0.220.0210.00817.69
8.0.210.0200.00817.69
8.0.200.0220.00517.69
8.0.190.0260.00317.69
8.0.180.0240.00317.69
8.0.170.0270.00717.69
8.0.160.0250.00317.69
8.0.150.0210.00717.69
8.0.140.0260.00317.69
8.0.130.0230.00617.69
8.0.120.0240.00317.69
8.0.110.0160.01117.69
8.0.100.0240.00417.69
8.0.90.0200.00817.69
8.0.80.0220.00317.69
8.0.70.0180.00717.69
8.0.60.0210.00417.69
8.0.50.0200.00617.69
8.0.30.0250.00017.69
8.0.20.0240.00317.69
8.0.10.0250.00417.69

preferences:
39.49 ms | 403 KiB | 5 Q