3v4l.org

run code in 500+ PHP versions simultaneously
<?php declare(strict_types=1); function bad_3rd_partycode( $p ) { return null; } function my_code( string $path ): string { if ( is_file( $path ) ) { unlink( $path ); } return ''; } $value = 'foo.log'; $value = call_user_func( 'bad_3rd_partycode', $value ); echo call_user_func( 'my_code', $value );

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.0090.00719.84
8.5.20.0110.00619.97
8.5.10.0110.00917.08
8.5.00.0120.00920.04
8.4.180.0130.01121.89
8.4.170.0120.01123.68
8.4.160.0110.01023.94
8.4.150.0090.00416.93
8.4.140.0130.01017.70
8.4.130.0120.00920.26
8.4.120.0070.00420.77
8.4.110.0120.00722.26
8.4.100.0140.00717.77
8.4.90.0120.00918.57
8.4.80.0120.01017.87
8.4.70.0100.00617.98
8.4.60.0240.01017.89
8.4.50.0250.01017.76
8.4.40.0390.00517.64
8.4.30.0330.01017.51
8.4.20.0430.00817.79
8.4.10.0380.01017.58
8.3.300.0100.01019.32
8.3.290.0120.00920.79
8.3.280.0130.00718.41
8.3.270.0080.01216.57
8.3.260.0110.00816.61
8.3.250.0100.00618.95
8.3.240.0110.00716.52
8.3.230.0100.00916.79
8.3.220.0100.00718.77
8.3.210.0070.00816.57
8.3.200.0240.00616.55
8.3.190.0250.00816.39
8.3.180.0190.00616.43
8.3.170.0450.00316.20
8.3.160.0430.01016.69
8.3.150.0370.01116.43
8.3.140.0320.01416.66
8.3.130.0280.01316.53
8.3.120.0310.01016.73
8.3.110.0330.00916.40
8.3.100.0380.00916.77
8.3.90.0320.01016.43
8.3.80.0390.00916.60
8.3.70.0370.00816.77
8.3.60.0510.01216.31
8.3.50.0260.00816.56
8.3.40.0430.00717.47
8.3.30.0410.01217.36
8.3.20.0380.00717.52
8.3.10.0190.00517.74
8.3.00.0170.00517.54
8.2.300.0160.00618.67
8.2.290.0110.00920.24
8.2.280.0180.00916.74
8.2.270.0240.01116.32
8.2.260.0320.00616.37
8.2.250.0310.00916.75
8.2.240.0340.00616.52
8.2.230.0310.00716.48
8.2.220.0310.00916.76
8.2.210.0300.00916.64
8.2.200.0270.01316.56
8.2.190.0280.01216.50
8.2.180.0330.00916.51
8.2.170.0350.00917.70
8.2.160.0430.00417.73
8.2.150.0340.00917.70
8.2.140.0340.00917.55
8.2.130.0350.00617.49
8.2.120.0290.00417.63
8.2.110.0340.00817.58
8.2.100.0290.00717.70
8.2.90.0270.00817.72
8.2.80.0370.00417.58
8.2.70.0330.00917.58
8.2.60.0370.00617.52
8.2.50.0350.00717.70
8.2.40.0300.00817.51
8.2.30.0400.00717.45
8.2.20.0350.00917.45
8.2.10.0340.00617.68
8.2.00.0270.01117.46
8.1.340.0130.00619.80

preferences:
45.94 ms | 854 KiB | 5 Q