3v4l.org

run code in 300+ PHP versions simultaneously
<?php $HashPrivado = 'ec7363b7c7ff3ab851335f801568dec5115f09705a45f7d849928e906e0964b0'; $HashPBD = '746e085ea210dd7c14f3cad3f6113767aa58439bebee6459989141c0f0474bff'; $BodyCupon = array( "Tipo" => "code128", "Codigo" => "1234567", "Tam" => 300, "Color" => "black", "ColorB" => "white", "AltoB"=> 50, "AnchoB"=> 2 ); //Preparo la llamada //$Parametros = json_encode($BodyCupon); $Parametros = '{"key":"AIzaSyB7tA6WOQ3NAch5ylIi_jy7G1raAUxhtdI","Location":"zzz38.908133,-77.047119", "Timestamp":"1458000000"}'; //$Parametros = '{"a":1,"b":2,"c":3,"d":4,"e":5}'; var_dump(json_decode($Parametros, TRUE)); //Usando el hash privado, firmamos el contenido a transmitir (los parĂ¡metros) $ElHash = hash_hmac('sha256', $Parametros, $HashPrivado); $ElHashBD = hash_hmac('sha256', $Parametros, $HashPBD); echo 'HashLK-'.$ElHash.PHP_EOL; echo 'HashBD-'.$ElHashBD.PHP_EOL; $HashMD5 = hash('md5', $Parametros, FALSE); echo 'ElMD5:'.$HashMD5;

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.130.0040.00418.51
8.3.120.0090.00018.97
8.3.110.0060.00320.94
8.3.100.0030.00616.54
8.3.90.0000.00818.30
8.3.80.0030.00818.43
8.3.70.0030.01316.36
8.3.60.0110.01116.50
8.3.50.0110.00916.62
8.3.40.0070.00718.64
8.3.30.0080.00818.54
8.3.20.0050.00321.91
8.3.10.0060.00321.85
8.3.00.0080.00019.56
8.2.250.0030.01318.18
8.2.240.0030.00717.11
8.2.230.0030.01322.58
8.2.220.0030.00624.06
8.2.210.0070.00726.77
8.2.200.0060.00318.16
8.2.190.0100.00716.58
8.2.180.0090.00918.43
8.2.170.0080.00822.96
8.2.160.0100.00320.35
8.2.150.0060.00324.18
8.2.140.0080.00624.66
8.2.130.0040.00426.16
8.2.120.0100.00719.95
8.2.110.0070.00422.00
8.2.100.0040.00817.91
8.2.90.0060.00317.84
8.2.80.0060.00317.63
8.2.70.0060.00317.50
8.2.60.0040.00417.80
8.2.50.0000.00818.07
8.2.40.0000.00718.08
8.2.30.0060.00318.09
8.2.20.0050.00318.05
8.2.10.0040.00418.23
8.2.00.0080.00017.99
8.1.300.0060.00917.89
8.1.290.0040.00418.88
8.1.280.0060.01025.92
8.1.270.0040.00420.52
8.1.260.0030.00526.35
8.1.250.0050.00328.09
8.1.240.0030.00622.54
8.1.230.0080.00320.85
8.1.220.0080.00017.74
8.1.210.0030.00618.95
8.1.200.0030.00717.35
8.1.190.0000.00817.23
8.1.180.0080.00018.10
8.1.170.0000.00918.49
8.1.160.0000.00718.89
8.1.150.0050.00218.90
8.1.140.0000.00719.50
8.1.130.0060.00320.55
8.1.120.0030.00617.51
8.1.110.0040.00417.33
8.1.100.0040.00417.42
8.1.90.0000.00817.47
8.1.80.0030.00317.46
8.1.70.0030.00317.43
8.1.60.0040.00417.60
8.1.50.0050.00217.53
8.1.40.0000.01017.43
8.1.30.0040.00417.64
8.1.20.0000.00717.64
8.1.10.0080.00017.37
8.1.00.0000.00817.50
8.0.300.0040.00420.03
8.0.290.0000.00716.75
8.0.280.0030.00318.43
8.0.270.0040.00417.30
8.0.260.0030.00318.95
8.0.250.0050.00317.03
8.0.240.0000.00916.89
8.0.230.0030.00316.86
8.0.220.0030.00316.79
8.0.210.0030.00516.83
8.0.200.0060.00016.98
8.0.190.0040.00416.98
8.0.180.0000.00816.80
8.0.170.0040.00416.82
8.0.160.0050.00316.89
8.0.150.0030.00516.75
8.0.140.0000.00716.75
8.0.130.0030.00313.36
8.0.120.0040.00416.79
8.0.110.0040.00416.98
8.0.100.0050.00316.89
8.0.90.0050.00216.88
8.0.80.0120.00316.93
8.0.70.0040.00416.86
8.0.60.0020.00516.67
8.0.50.0080.00016.78
8.0.30.0100.00816.97
8.0.20.0100.00917.40
8.0.10.0000.00717.00
8.0.00.0150.00816.78
7.4.330.0060.00015.55
7.4.320.0030.00316.55
7.4.300.0000.00616.35
7.4.290.0040.00416.54
7.4.280.0090.00016.43
7.4.270.0050.00316.45
7.4.260.0070.00316.50
7.4.250.0070.00016.27
7.4.240.0030.00316.52
7.4.230.0030.00316.47
7.4.220.0090.00916.41
7.4.210.0140.00716.50
7.4.200.0040.00416.44
7.4.160.0120.00416.42
7.4.150.0130.01217.40
7.4.140.0130.00617.86
7.4.130.0100.00716.32
7.4.120.0100.01616.59
7.4.110.0140.00316.57
7.4.100.0140.00316.58
7.4.90.0060.01116.42
7.4.80.0150.00719.39
7.4.70.0100.00716.43
7.4.60.0060.01016.54
7.4.50.0130.00316.33
7.4.40.0070.01016.56
7.4.30.0030.01316.54
7.4.00.0080.01014.92
7.3.330.0030.00313.11
7.3.320.0030.00313.03
7.3.310.0030.00316.21
7.3.300.0070.00016.29
7.3.290.0050.01016.29
7.3.280.0070.01016.26
7.3.270.0100.01017.40
7.3.260.0070.01416.36
7.3.250.0140.00416.41
7.3.240.0070.01016.59
7.3.230.0090.00916.36
7.3.210.0080.00816.28
7.3.200.0100.01016.51
7.3.190.0170.00316.53
7.3.180.0110.00616.20
7.3.170.0000.01716.54
7.3.160.0200.00016.21
7.3.120.0130.00614.68
7.3.110.0070.01214.75
7.3.100.0070.00714.82
7.3.90.0070.00914.68
7.3.80.0060.00814.71
7.3.70.0050.00814.83
7.3.60.0090.00514.88
7.3.50.0030.00814.69
7.3.40.0070.00714.67
7.3.30.0060.01014.84
7.3.20.0100.00516.62
7.3.10.0070.00616.62
7.3.00.0060.00616.67
7.2.330.0060.01216.59
7.2.320.0110.00616.74
7.2.310.0100.00616.36
7.2.300.0130.00416.61
7.2.290.0050.01116.68
7.2.250.0140.00514.89
7.2.240.0040.01315.07
7.2.230.0120.00214.86
7.2.220.0100.00615.23
7.2.210.0110.00514.99
7.2.200.0050.01014.93
7.2.190.0040.01015.10
7.2.180.0020.01314.90
7.2.170.0050.00714.93
7.2.130.0000.01317.03
7.2.120.0030.00916.90
7.2.110.0030.01216.66
7.2.100.0040.01116.97
7.2.90.0060.00616.93
7.2.80.0040.00816.96
7.2.70.0000.00916.79
7.2.60.0080.00616.87
7.2.50.0080.00816.91
7.2.40.0040.01116.99
7.2.30.0040.01116.94
7.2.20.0000.01616.83
7.2.10.0070.00716.91
7.2.00.0030.01017.04
7.1.330.0030.01015.80
7.1.320.0070.01215.67
7.1.310.0070.00815.86
7.1.300.0000.01415.60
7.1.290.0030.01015.75
7.1.280.0050.01015.75
7.1.270.0030.01015.59
7.1.260.0040.01015.66
7.1.250.0000.01315.73
7.1.200.0070.00315.59
7.1.70.0100.00316.95
7.1.60.0230.00334.96
7.1.50.0200.00734.69
7.1.40.0200.00734.25
7.1.30.0200.01734.27
7.1.20.0170.01034.50
7.1.10.0030.01316.36
7.1.00.0070.01016.41
7.0.200.0030.01316.67
7.0.190.0030.01016.73
7.0.180.0000.01316.25
7.0.170.0000.01316.09
7.0.160.0000.01315.94
7.0.150.0000.01316.25
7.0.140.0000.01716.13
7.0.130.0100.00316.46
7.0.120.0000.01016.72
7.0.110.0070.01016.54
7.0.100.0030.01016.34
7.0.90.0000.01316.44
7.0.80.0030.01016.40
7.0.70.0000.01316.16
7.0.60.0030.01016.13
7.0.50.0030.01316.23
7.0.40.0070.01016.43
7.0.30.0100.00716.72
7.0.20.0070.01016.38
7.0.10.0000.01316.39
7.0.00.0000.01316.50

preferences:
27.71 ms | 403 KiB | 5 Q