3v4l.org

run code in 300+ PHP versions simultaneously
<?php $elapsed_time = 324; $errorThrown = "Internal Server Error"; $errors = array( "No user" => "No user, you can ignore this error message", "Request-URI Too Long" => "User was logged out but still submitted 'Get Report', you can ignore this error message", "Internal Server Error" => "Elapsed time of run: ".$elapsed_time."\nIf elapsed time is over 300 seconds then too many results were generated.\nCheck to see if the user didn't enter enough parameters, if so ignore this error message." ); echo $errors[$errorThrown]; echo array_key_exists("No User"); echo array_key_exists("No user");

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.60.0030.01616.63
8.3.50.0120.00416.30
8.3.40.0060.01318.79
8.3.30.0090.00618.69
8.3.20.0070.00021.89
8.3.10.0070.00021.88
8.3.00.0030.00621.75
8.2.180.0040.01116.63
8.2.170.0090.00622.96
8.2.160.0030.01120.53
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0070.00019.20
8.2.120.0040.00426.35
8.2.110.0080.01120.93
8.2.100.0040.00818.03
8.2.90.0000.00819.39
8.2.80.0000.00817.97
8.2.70.0030.00617.87
8.2.60.0040.00417.80
8.2.50.0040.00418.28
8.2.40.0070.00020.60
8.2.30.0000.00719.50
8.2.20.0040.00418.19
8.2.10.0000.00818.03
8.2.00.0040.00418.01
8.1.280.0100.00325.92
8.1.270.0040.00422.01
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00322.72
8.1.230.0000.01117.82
8.1.220.0000.01017.74
8.1.210.0040.00418.77
8.1.200.0000.00817.35
8.1.190.0040.00417.35
8.1.180.0040.00418.10
8.1.170.0030.00518.91
8.1.160.0060.00318.89
8.1.150.0030.00519.02
8.1.140.0000.00817.76
8.1.130.0030.00319.05
8.1.120.0040.00417.37
8.1.110.0040.00417.51
8.1.100.0040.00417.36
8.1.90.0040.00417.36
8.1.80.0000.00717.50
8.1.70.0070.00017.48
8.1.60.0030.00517.60
8.1.50.0000.00817.55
8.1.40.0000.00817.57
8.1.30.0050.00317.68
8.1.20.0040.00417.62
8.1.10.0030.00517.57
8.1.00.0040.00417.43
8.0.300.0070.00018.77
8.0.290.0040.00416.88
8.0.280.0030.00318.39
8.0.270.0000.00717.14
8.0.260.0000.00719.11
8.0.250.0000.00716.86
8.0.240.0030.00316.98
8.0.230.0040.00416.93
8.0.220.0000.00716.95
8.0.210.0070.00016.97
8.0.200.0030.00317.02
8.0.190.0040.00416.98
8.0.180.0000.00717.00
8.0.170.0030.00616.95
8.0.160.0030.00517.00
8.0.150.0040.00416.88
8.0.140.0030.00316.91
8.0.130.0000.00513.35
8.0.120.0000.00716.84
8.0.110.0030.00517.00
8.0.100.0020.00516.94
8.0.90.0040.00417.00
8.0.80.0120.00917.00
8.0.70.0040.00416.75
8.0.60.0040.00416.86
8.0.50.0000.00816.85
8.0.30.0100.00817.11
8.0.20.0090.01317.40
8.0.10.0000.00717.14
8.0.00.0100.00716.67
7.4.330.0000.00515.55
7.4.320.0030.00316.44
7.4.300.0040.00416.50
7.4.290.0090.00016.41
7.4.280.0000.00716.54
7.4.270.0030.00316.57
7.4.260.0030.00316.41
7.4.250.0040.00416.44
7.4.240.0000.00716.44
7.4.230.0070.00016.46
7.4.220.0030.00516.34
7.4.210.0070.01016.58
7.4.200.0070.00016.34
7.4.160.0100.00816.46
7.4.140.0110.00917.86
7.4.130.0200.00616.53
7.4.120.0080.01216.61
7.4.110.0120.00916.59
7.4.100.0110.00716.48
7.4.90.0070.01016.69
7.4.80.0060.01519.39
7.4.70.0090.00916.49
7.4.60.0100.00616.43
7.4.50.0030.01416.59
7.4.40.0110.00616.45
7.4.00.0040.01214.72
7.3.330.0000.00513.17
7.3.320.0000.00613.12
7.3.310.0030.00316.29
7.3.300.0030.00316.34
7.3.290.0070.00016.29
7.3.280.0130.00316.33
7.3.260.0120.00716.32
7.3.240.0040.01216.35
7.3.230.0130.00916.36
7.3.210.0060.01016.36
7.3.200.0080.00816.34
7.3.190.0110.00616.32
7.3.180.0100.00716.42
7.3.170.0070.01016.64
7.3.160.0080.00816.46
7.3.120.0120.00314.87
7.3.110.0000.01314.68
7.3.100.0030.01214.56
7.3.90.0040.01114.94
7.3.80.0040.01114.87
7.3.70.0060.01014.59
7.3.60.0060.00914.95
7.3.50.0070.01014.78
7.3.40.0090.00614.63
7.3.30.0040.00814.90
7.3.20.0040.01116.57
7.3.10.0120.00616.79
7.3.00.0100.00716.38
7.2.330.0110.01216.41
7.2.320.0090.00316.73
7.2.310.0140.00316.59
7.2.300.0140.00716.64
7.2.290.0160.00316.48
7.2.240.0030.01214.82
7.2.230.0040.01115.04
7.2.220.0060.00614.72
7.2.210.0000.01315.05
7.2.200.0070.00715.12
7.2.190.0070.00714.77
7.2.180.0100.00315.09
7.2.170.0150.00014.80
7.2.160.0000.01714.98
7.2.150.0110.00716.78
7.2.140.0040.01117.05
7.2.130.0030.01316.76
7.2.120.0060.00616.63
7.2.110.0060.01216.97
7.2.100.0060.01216.82
7.2.90.0000.01216.99
7.2.80.0060.00916.91
7.2.70.0070.01016.86
7.2.60.0080.00616.92
7.2.50.0060.00917.01
7.2.40.0410.01017.29
7.2.30.0270.00817.42
7.2.20.0480.01017.43
7.2.10.0230.01217.34
7.2.00.0340.01117.32
7.1.330.0040.00815.80
7.1.320.0030.00615.82
7.1.310.0060.00815.69
7.1.300.0100.00715.68
7.1.290.0090.00615.79
7.1.280.0120.00315.82
7.1.270.0060.01115.83
7.1.260.0040.01115.71
7.1.250.0040.00715.48
7.1.200.0100.00315.80
7.1.160.0440.01116.70
7.1.150.0440.01016.67
7.1.140.0380.01016.75
7.1.130.0430.01016.66
7.1.120.0390.01316.64
7.1.110.0400.01116.04
7.1.100.0390.01315.91
7.1.90.0620.01315.73
7.1.80.0440.00916.27
7.1.70.0430.00815.12
7.1.60.0590.00933.09
7.1.50.0540.01332.59
7.1.40.0670.01432.75
7.1.30.0610.01432.80
7.1.20.0640.01432.74
7.1.10.0410.01214.79
7.1.00.0550.01114.92

preferences:
41.29 ms | 401 KiB | 5 Q