3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = true; // mysqli_num_rows($itemProtoQuery) $b = true; // mysqli_num_rows($itemAward) $c = false; // $coins < $isPrice $d = true; // !$strBuy $e = false; // $addItemQuery if($a === true) // mysqli_num_rows($itemProtoQuery) { echo "Znaleziono przedmiot. Zabieramy kasę i szukujemy bazę." . PHP_EOL; // $sqlUpdate = DB_COINS_COLUMN."=".DB_COINS_COLUMN."-$isPrice"; PIĘKNE :) if($b === true) // mysqli_num_rows($itemAward) { echo "Sprawdzamy czas jeśli Znaleziono itemAward." . PHP_EOL; } if($c === true) // $coins < $isPrice { echo "Nie masz kasy." . PHP_EOL; } elseif($d === false) // !$strBuy { echo "Jeden przedmiot możesz kupić raz na 15 sekund!" . PHP_EOL; } else { echo "Robimy pierdoły z dodawaniem przedmiotu do bazy. Szykujemy zapytanie." . PHP_EOL; if($e === true) // $addItemQuery { echo "Jeżeli dodaliśmy item i INSERT się powiódł ustaw monety w bazie uzytkownika." . PHP_EOL; } else { echo "Nie można zmienić danych kasy." . PHP_EOL; } } } else { echo "Nie znaleziono przedmiotu." . PHP_EOL; }

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.20.0070.01117.55
8.4.10.0040.01217.70
8.3.150.0100.01016.41
8.3.140.0070.01016.46
8.3.130.0000.01516.38
8.3.120.0130.00718.85
8.3.110.0000.00820.94
8.3.100.0030.00916.66
8.3.90.0050.00226.77
8.3.80.0000.01016.63
8.3.70.0120.00916.58
8.3.60.0120.00916.38
8.3.50.0070.01021.12
8.3.40.0090.00618.45
8.3.30.0090.00618.41
8.3.20.0000.00820.33
8.3.10.0090.00021.59
8.3.00.0040.00419.56
8.2.260.0110.00417.04
8.2.250.0060.00317.06
8.2.240.0000.00817.05
8.2.230.0060.00322.58
8.2.220.0030.00624.06
8.2.210.0080.00026.77
8.2.200.0060.00316.38
8.2.190.0070.01418.16
8.2.180.0110.00425.92
8.2.170.0100.01022.96
8.2.160.0080.00520.29
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0000.00817.38
8.2.110.0030.00620.39
8.2.100.0000.01217.84
8.2.90.0040.00418.03
8.2.80.0030.00618.98
8.2.70.0040.00417.63
8.2.60.0030.00617.50
8.2.50.0030.00619.35
8.2.40.0050.00319.35
8.2.30.0030.00617.63
8.2.20.0000.00817.62
8.2.10.0040.00417.89
8.2.00.0030.00517.86
8.1.310.0070.00716.46
8.1.300.0040.00417.78
8.1.290.0000.00830.84
8.1.280.0140.00725.92
8.1.270.0110.00723.84
8.1.260.0090.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00617.25
8.1.230.0120.00320.86
8.1.220.0040.00417.79
8.1.210.0040.00418.77
8.1.200.0060.00317.36
8.1.190.0000.00917.10
8.1.180.0040.00418.10
8.1.170.0080.00017.62
8.1.160.0060.00318.69
8.1.150.0040.00418.72
8.1.140.0000.00819.45
8.1.130.0070.00017.67
8.1.120.0040.00417.41
8.1.110.0000.00717.40
8.1.100.0040.00417.44
8.1.90.0070.00017.39
8.1.80.0050.00317.42
8.1.70.0000.00817.28
8.1.60.0080.00017.51
8.1.50.0040.00417.48
8.1.40.0030.00517.46
8.1.30.0000.00817.52
8.1.20.0040.00417.58
8.1.10.0000.00817.48
8.1.00.0000.00817.29
8.0.300.0070.00020.04
8.0.290.0080.00016.63
8.0.280.0000.00717.91
8.0.270.0030.00318.00
8.0.260.0000.00617.17
8.0.250.0000.00716.82
8.0.240.0070.00016.89
8.0.230.0000.00716.80
8.0.220.0030.00316.89
8.0.210.0030.00616.82
8.0.200.0000.00716.91
8.0.190.0060.00316.80
8.0.180.0000.00716.82
8.0.170.0030.00616.88
8.0.160.0060.00616.71
8.0.150.0070.00016.80
8.0.140.0000.00816.75
8.0.130.0090.00013.24
8.0.120.0000.00816.75
8.0.110.0070.00016.86
8.0.100.0070.00016.73
8.0.90.0030.00316.65
8.0.80.0110.00716.81
8.0.70.0050.00216.70
8.0.60.0000.00716.63
8.0.50.0000.00716.63
8.0.30.0050.01417.25
8.0.20.0120.01017.40
8.0.10.0000.00717.01
8.0.00.0090.01016.73
7.4.330.0050.00015.08
7.4.320.0000.00616.39
7.4.300.0000.00616.49
7.4.290.0070.00016.60
7.4.280.0050.00316.50
7.4.270.0000.00716.59
7.4.260.0030.00516.51
7.4.250.0000.00816.48
7.4.240.0030.00416.49
7.4.230.0000.00816.60
7.4.220.0040.01416.64
7.4.210.0120.00316.70
7.4.200.0000.00716.52
7.4.160.0060.01016.52
7.4.150.0030.01417.40
7.4.140.0130.00917.86
7.4.130.0150.00316.44
7.4.120.0100.00716.45
7.4.110.0100.00716.43
7.4.100.0070.01516.41
7.4.90.0040.01416.51
7.4.80.0130.00319.39
7.4.70.0080.00816.41
7.4.60.0130.00716.53
7.4.50.0000.00816.30
7.4.40.0090.00916.29
7.4.30.0110.01116.47
7.4.00.0050.00815.08
7.3.330.0030.00312.96
7.3.320.0030.00312.95
7.3.310.0000.00716.20
7.3.300.0050.00216.11
7.3.290.0070.01216.21
7.3.280.0090.01016.23
7.3.270.0160.00617.40
7.3.260.0030.01316.61
7.3.240.0080.01616.60
7.3.230.0030.01416.39
7.3.210.0180.00416.52
7.3.200.0000.01916.51
7.3.190.0080.00816.17
7.3.180.0070.01016.21
7.3.170.0060.01216.36
7.3.160.0080.00816.38
7.2.330.0060.01216.76
7.2.320.0130.00316.72
7.2.310.0120.00616.74
7.2.300.0140.00716.58
7.2.290.0140.00416.59
7.2.80.0130.00416.71
7.2.60.0120.00316.81
7.2.00.0000.01418.91
7.1.200.0090.00415.31
7.1.100.0000.01017.99
7.1.70.0030.00316.74
7.1.60.0100.01319.50
7.1.50.0100.01016.79
7.1.00.0030.07722.54
7.0.200.0370.00314.83
7.0.100.0330.07320.01
7.0.90.0070.07719.83
7.0.80.0030.06719.88
7.0.70.0270.07019.98
7.0.60.0370.07019.92
7.0.50.0130.05320.26
7.0.40.0100.08020.18
7.0.30.0100.08720.04
7.0.20.0130.07720.11
7.0.10.0100.08020.07
7.0.00.0030.08020.14
5.6.280.0000.07321.13
5.6.250.0100.06320.59
5.6.240.0070.08720.59
5.6.230.0070.08720.74
5.6.220.0100.06720.61
5.6.210.0070.05320.55
5.6.200.0100.09720.98
5.6.190.0170.08320.93
5.6.180.0070.08321.00
5.6.170.0100.07720.96
5.6.160.0130.07721.11
5.6.150.0100.07021.09
5.6.140.0130.07721.03
5.6.130.0130.08321.13
5.6.120.0170.07721.02
5.6.110.0070.08721.05
5.6.100.0070.05021.03
5.6.90.0000.04720.93
5.6.80.0000.04720.39
5.6.70.0000.04320.41
5.6.60.0130.03720.40
5.6.50.0000.04320.47
5.6.40.0030.03320.43
5.6.30.0030.03320.38
5.6.20.0070.05720.42
5.6.10.0170.05720.32
5.6.00.0030.08020.36
5.5.380.0070.04320.40
5.5.370.0200.06720.42
5.5.360.0070.04020.35
5.5.350.0130.06020.34
5.5.340.0100.08720.92
5.5.330.0070.08320.89
5.5.320.0130.08320.89
5.5.310.0100.07320.82
5.5.300.0100.08720.80
5.5.290.0030.06720.77
5.5.280.0100.03720.91
5.5.270.0070.05320.90
5.5.260.0070.08020.75
5.5.250.0030.04320.57
5.5.240.0000.04020.19
5.5.230.0070.03720.11
5.5.220.0000.04720.30
5.5.210.0070.03720.14
5.5.200.0030.04020.28
5.5.190.0070.06020.14
5.5.180.0000.09020.11
5.5.160.0100.04320.15
5.5.150.0000.03720.28
5.5.140.0070.03720.23
5.5.130.0070.03720.26
5.5.120.0000.05020.25
5.5.110.0130.02320.25
5.5.100.0070.03320.15
5.5.90.0070.04020.16
5.5.80.0030.04020.11
5.5.70.0030.04020.14
5.5.60.0100.04320.06
5.5.50.0030.03720.15
5.5.40.0030.04020.05
5.5.30.0070.03720.14
5.5.20.0100.03319.99
5.5.10.0070.03720.01
5.5.00.0100.03320.11
5.4.450.0070.08319.31
5.4.440.0100.07319.27
5.4.430.0170.06719.39
5.4.420.0000.04019.54
5.4.410.0130.03019.14
5.4.400.0100.03019.12
5.4.390.0030.04018.95
5.4.380.0000.04318.99
5.4.370.0130.03318.98
5.4.360.0030.04319.04
5.4.350.0000.03318.94
5.4.340.0030.08019.08
5.4.320.0000.06319.04
5.4.310.0000.03719.26
5.4.300.0100.03018.96
5.4.290.0030.03719.07
5.4.280.0130.04319.05
5.4.270.0070.03718.90
5.4.260.0070.03318.89
5.4.250.0030.04319.22
5.4.240.0100.03019.07
5.4.230.0030.03318.78
5.4.220.0030.04019.05
5.4.210.0000.04319.12
5.4.200.0100.03319.07
5.4.190.0200.02718.93
5.4.180.0000.04019.02
5.4.170.0070.03318.89
5.4.160.0030.03719.10
5.4.150.0070.03319.10
5.4.140.0030.03316.12
5.4.130.0000.03716.12
5.4.120.0030.04716.28
5.4.110.0030.03016.30
5.4.100.0000.03316.21
5.4.90.0070.02316.23
5.4.80.0000.03016.36
5.4.70.0030.03716.39
5.4.60.0030.03716.28
5.4.50.0030.03016.18
5.4.40.0070.03016.26
5.4.30.0000.04016.39
5.4.20.0030.03016.27
5.4.10.0030.03316.23
5.4.00.0030.03715.81

preferences:
72.53 ms | 403 KiB | 5 Q