3v4l.org

run code in 300+ PHP versions simultaneously
<?php const response_codes = [ ["Usuario incorrecto.", false], ["Password incorrecta.", false], ["Credenciales inválidas.", false], ["Logueado correctamente.", true], ["No se pudo conectar al servidor LDAP para validar las credenciales.", false] ]; /** * Looks up response id in response codes and return the appropriate message * * @param [int] $responseId - the id of the response. * @return array(string, bool) the response message and false if it is an error or true if it a success. */ function interpretResponse($id) { return response_codes[$id] ?? ["Error desconocido", false]; } for ($x = 0; $x < 6; ++$x) { var_export(interpretResponse($x)); echo "\n"; }

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.130.0110.00917.84
8.4.120.0140.00720.36
8.4.110.0070.00318.89
8.4.100.0120.00818.63
8.4.90.0090.01120.71
8.4.80.0040.00418.89
8.4.70.0130.00818.92
8.4.60.0120.00718.88
8.4.50.0110.00918.60
8.4.40.0160.00319.37
8.4.30.0120.00618.89
8.4.20.0100.01020.84
8.4.10.0030.01319.44
8.3.260.0040.00516.56
8.3.250.0120.00618.85
8.3.240.0050.00316.75
8.3.230.0130.00616.56
8.3.220.0130.00519.12
8.3.210.0130.00518.33
8.3.200.0030.00516.50
8.3.190.0030.00517.31
8.3.180.0070.00118.41
8.3.170.0060.01317.05
8.3.160.0120.00616.47
8.3.150.0150.00419.05
8.3.140.0140.00716.79
8.3.130.0090.00918.58
8.3.120.0090.00918.72
8.3.110.0090.00020.94
8.3.100.0000.00824.06
8.3.90.0000.00826.77
8.3.80.0110.00018.55
8.3.70.0070.00716.50
8.3.60.0130.00718.31
8.3.50.0110.00617.38
8.3.40.0100.00718.71
8.3.30.0070.00718.63
8.3.20.0000.00721.90
8.3.10.0050.00321.73
8.3.00.0080.00023.48
8.2.290.0120.00720.67
8.2.280.0100.01018.55
8.2.270.0080.00017.39
8.2.260.0160.00318.52
8.2.250.0130.00618.27
8.2.240.0100.00017.18
8.2.230.0090.00022.58
8.2.220.0060.00337.54
8.2.210.0140.00726.77
8.2.200.0030.00718.18
8.2.190.0030.01316.63
8.2.180.0100.01018.16
8.2.170.0120.00922.96
8.2.160.0070.00720.38
8.2.150.0070.00324.18
8.2.140.0080.00024.66
8.2.130.0100.00726.16
8.2.120.0040.00420.87
8.2.110.0030.00620.37
8.2.100.0040.00817.91
8.2.90.0080.00017.63
8.2.80.0050.00318.73
8.2.70.0050.00317.50
8.2.60.0050.00318.05
8.2.50.0000.00918.07
8.2.40.0000.00718.22
8.2.30.0070.00018.13
8.2.20.0070.00018.19
8.2.10.0040.00419.41
8.2.00.0040.00419.36
8.1.330.0160.00317.93
8.1.320.0120.00815.84
8.1.310.0090.00920.23
8.1.300.0110.00019.61
8.1.290.0050.00518.88
8.1.280.0120.00325.92
8.1.270.0050.00323.99
8.1.260.0200.00026.35
8.1.250.0070.01028.09
8.1.240.0090.00019.11
8.1.230.0080.00817.76
8.1.220.0040.00417.78
8.1.210.0080.00018.77
8.1.200.0060.00317.22
8.1.190.0030.00517.35
8.1.180.0050.00318.10
8.1.170.0060.00318.90
8.1.160.0040.00418.80
8.1.150.0000.00818.90
8.1.140.0020.00518.89
8.1.130.0070.00020.14
8.1.120.0070.00017.47
8.1.110.0040.00417.36
8.1.100.0000.00817.47
8.1.90.0080.00017.48
8.1.80.0000.00717.27
8.1.70.0030.00317.46
8.1.60.0000.00817.61
8.1.50.0030.00517.54
8.1.40.0060.00317.49
8.1.30.0020.00517.64
8.1.20.0080.00417.63
8.1.10.0000.00817.57
8.1.00.0070.00017.55
8.0.300.0040.00418.77
8.0.290.0000.00816.75
8.0.280.0070.00018.46
8.0.270.0070.00017.16
8.0.260.0060.00018.39
8.0.250.0050.00216.99
8.0.240.0070.00016.84
8.0.230.0070.00016.96
8.0.220.0060.00016.73
8.0.210.0000.00716.80
8.0.200.0040.00416.91
8.0.190.0040.00416.96
8.0.180.0040.00417.00
8.0.170.0060.00316.95
8.0.160.0000.00816.81
8.0.150.0000.00816.75
8.0.140.0040.00416.85
8.0.130.0000.00513.41
8.0.120.0000.00716.89
8.0.110.0040.00416.89
8.0.100.0030.00316.78
8.0.90.0040.00416.89
8.0.80.0080.00816.88
8.0.70.0040.00416.72
8.0.60.0080.00016.86
8.0.50.0000.00816.77
8.0.30.0100.00517.23
8.0.20.0000.02017.12
8.0.10.0070.00017.09
8.0.00.0100.00916.67
7.4.330.0000.00515.55
7.4.320.0000.00616.59
7.4.300.0030.00316.45
7.4.290.0080.00016.60
7.4.280.0000.00716.59
7.4.270.0030.00316.61
7.4.260.0000.00716.49
7.4.250.0000.00716.52
7.4.240.0020.00516.55
7.4.230.0030.00316.52
7.4.220.0030.00516.49
7.4.210.0050.01016.63
7.4.200.0000.00716.59
7.4.160.0120.00516.45
7.4.130.0090.01616.41
7.4.120.0070.01416.35
7.4.110.0130.01116.55
7.4.100.0090.00916.48
7.4.90.0110.00816.47
7.4.80.0080.00819.39
7.4.70.0120.00716.34
7.4.60.0080.00816.45
7.4.50.0030.01416.47
7.4.40.0120.00416.43
7.4.10.0120.00614.91
7.4.00.0020.01515.06
7.3.330.0000.00613.14
7.3.320.0000.00613.34
7.3.310.0030.00316.18
7.3.300.0040.00416.28
7.3.290.0000.00716.21
7.3.280.0080.00716.27
7.3.260.0120.01116.48
7.3.240.0120.00616.36
7.3.230.0080.01116.33
7.3.210.0100.00616.64
7.3.200.0110.00616.60
7.3.190.0100.00916.48
7.3.180.0120.00816.32
7.3.170.0130.00316.46
7.3.160.0120.00416.50
7.3.130.0100.00714.61
7.3.120.0040.00814.80
7.3.110.0090.00915.09
7.3.100.0050.00514.91
7.3.90.0030.01314.85
7.3.80.0080.00314.99
7.3.70.0090.00614.93
7.3.60.0100.00414.77
7.3.50.0150.00314.77
7.3.40.0100.00414.75
7.3.30.0090.00614.56
7.3.20.0070.00416.65
7.3.10.0030.01016.68
7.3.00.0030.01116.42
7.2.330.0090.00916.88
7.2.320.0050.01216.73
7.2.310.0110.00516.37
7.2.300.0130.00616.54
7.2.290.0090.01216.85
7.2.260.0120.00614.97
7.2.250.0000.01814.59
7.2.240.0060.00915.06
7.2.230.0030.01414.89
7.2.220.0070.01015.01
7.2.210.0030.01215.09
7.2.200.0090.00614.93
7.2.190.0100.01114.93
7.2.180.0070.00515.09
7.2.170.0090.00515.01
7.2.160.0050.01215.06
7.2.150.0110.00716.97
7.2.140.0020.01416.95
7.2.130.0030.01116.73
7.2.120.0050.00916.96
7.2.110.0100.00316.94
7.2.100.0140.00417.03
7.2.90.0050.00816.77
7.2.80.0090.00416.95
7.2.70.0100.00816.92
7.2.60.0070.00916.91
7.2.50.0050.00716.96
7.2.40.0130.00417.10
7.2.30.0110.00516.95
7.2.20.0100.00716.80
7.2.10.0070.00616.90
7.2.00.0080.00316.89
7.1.330.0060.00615.86
7.1.320.0030.00915.79
7.1.310.0030.01015.88
7.1.300.0090.00715.56
7.1.290.0030.01215.84
7.1.280.0080.00515.69
7.1.270.0070.01215.65
7.1.260.0100.00815.81
7.1.250.0040.01115.80
7.1.240.0060.00615.90
7.1.230.0030.00915.64
7.1.220.0030.01015.70
7.1.210.0040.01115.93
7.1.200.0030.01015.93
7.1.190.0110.00415.82
7.1.180.0060.00615.73
7.1.170.0030.00915.81
7.1.160.0030.00915.85
7.1.150.0030.00615.98
7.1.140.0040.01215.79
7.1.130.0060.00615.89
7.1.120.0090.00615.83
7.1.110.0060.00615.67
7.1.100.0070.00715.75
7.1.90.0040.00915.59
7.1.80.0090.00015.86
7.1.70.0090.00315.82
7.1.60.0040.00415.71
7.1.50.0040.00715.61
7.1.40.0120.00315.86
7.1.30.0090.00015.87
7.1.20.0030.01415.91
7.1.10.0030.01015.80
7.1.00.0090.00615.79

preferences:
121.86 ms | 403 KiB | 5 Q