3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 4; $b = 1; $res1 = ($a and $b); $res2 = $a & $b; $res3 = ($a or $b); $res4 = $a | $b; var_dump($res1);//the res1 is 4,but the manual describes the result to be a bool type. var_dump($res2); var_dump($res3); var_dump($res4);

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.120.0100.01020.46
8.4.110.0150.00522.43
8.4.100.0100.01117.55
8.4.90.0150.00622.38
8.4.80.0130.00719.49
8.4.70.0050.00617.97
8.4.60.0110.01018.71
8.4.50.0040.00518.82
8.4.40.0150.00319.24
8.4.30.0060.01317.67
8.4.20.0100.01017.78
8.4.10.0130.00319.48
8.3.250.0130.00518.92
8.3.240.0080.00816.64
8.3.230.0040.00416.63
8.3.220.0040.00417.17
8.3.210.0090.01016.55
8.3.200.0060.00216.63
8.3.190.0080.00919.10
8.3.180.0040.00416.38
8.3.170.0060.01217.10
8.3.160.0000.00820.04
8.3.150.0140.00717.37
8.3.140.0070.01016.50
8.3.130.0100.00016.58
8.3.120.0080.00020.91
8.3.110.0060.00320.94
8.3.100.0080.00816.65
8.3.90.0070.00726.77
8.3.80.0090.00016.63
8.3.70.0040.01116.63
8.3.60.0120.00616.75
8.3.50.0120.00721.97
8.3.40.0100.00718.57
8.3.30.0110.00418.67
8.3.20.0040.00421.77
8.3.10.0080.00022.09
8.3.00.0050.00321.01
8.2.290.0120.00620.16
8.2.280.0080.01018.49
8.2.270.0070.01017.16
8.2.260.0070.00718.36
8.2.250.0050.00317.33
8.2.240.0090.00918.99
8.2.230.0100.00022.58
8.2.220.0100.01024.06
8.2.210.0040.00426.77
8.2.200.0000.01016.38
8.2.190.0120.00316.58
8.2.180.0040.01116.63
8.2.170.0150.00318.96
8.2.160.0130.00322.96
8.2.150.0070.00024.18
8.2.140.0040.00424.66
8.2.130.0050.00218.09
8.2.120.0020.00526.35
8.2.110.0060.00321.09
8.2.100.0000.01117.78
8.2.90.0040.00419.21
8.2.80.0040.00417.97
8.2.70.0080.00017.49
8.2.60.0080.00017.93
8.2.50.0050.00318.10
8.2.40.0040.00420.46
8.2.30.0070.00319.20
8.2.20.0040.00418.04
8.2.10.0030.00718.02
8.2.00.0050.00217.67
8.1.330.0140.00421.79
8.1.320.0100.01115.97
8.1.310.0070.01118.45
8.1.300.0070.01317.79
8.1.290.0090.00030.84
8.1.280.0110.00325.92
8.1.270.0080.00023.91
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0090.00021.27
8.1.230.0070.00417.52
8.1.220.0050.00317.79
8.1.210.0040.00418.77
8.1.200.0040.00417.23
8.1.190.0050.00317.23
8.1.180.0000.00818.10
8.1.170.0060.00318.56
8.1.160.0000.00818.82
8.1.150.0040.00420.30
8.1.140.0050.00219.63
8.1.130.0000.00919.29
8.1.120.0040.00417.34
8.1.110.0040.00417.45
8.1.100.0070.00017.35
8.1.90.0030.00317.34
8.1.80.0040.00417.39
8.1.70.0030.00317.36
8.1.60.0000.00717.59
8.1.50.0040.00417.48
8.1.40.0040.00417.57
8.1.30.0030.00517.51
8.1.20.0000.00717.60
8.1.10.0070.00017.45
8.1.00.0070.00017.39
8.0.300.0080.00018.77
8.0.290.0040.00416.75
8.0.280.0040.00418.44
8.0.270.0070.00016.81
8.0.260.0040.00416.81
8.0.250.0000.00716.79
8.0.240.0070.00016.80
8.0.230.0040.00316.87
8.0.220.0080.00016.90
8.0.210.0000.00716.81
8.0.200.0040.00416.91
8.0.190.0000.00816.90
8.0.180.0040.00416.86
8.0.170.0040.00416.93
8.0.160.0030.00316.86
8.0.150.0040.00416.86
8.0.140.0000.00716.80
8.0.130.0000.00613.27
8.0.120.0040.00416.87
8.0.110.0040.00416.88
8.0.100.0040.00416.82
8.0.90.0040.00416.92
8.0.80.0120.00316.93
8.0.70.0040.00416.86
8.0.60.0000.00717.00
8.0.50.0030.00516.76
8.0.30.0130.01016.90
8.0.20.0160.00217.40
8.0.10.0000.00717.07
8.0.00.0150.00316.74
7.4.330.0000.00515.55
7.4.320.0040.00416.59
7.4.300.0000.00616.49
7.4.290.0030.00516.49
7.4.280.0060.00316.60
7.4.270.0020.00516.57
7.4.260.0100.00016.52
7.4.250.0050.00216.47
7.4.240.0070.00016.65
7.4.230.0070.00016.66
7.4.220.0110.00716.51
7.4.210.0170.00316.45
7.4.200.0050.00316.48
7.4.160.0050.01216.35
7.4.150.0170.00017.40
7.4.140.0130.00717.86
7.4.130.0070.01116.54
7.4.120.0060.01016.45
7.4.110.0080.00816.49
7.4.100.0070.01016.49
7.4.90.0120.00616.42
7.4.80.0120.00819.39
7.4.70.0070.01016.34
7.4.60.0090.00616.45
7.4.50.0100.00716.59
7.4.40.0060.01216.48
7.4.30.0100.01016.31
7.4.00.0090.00614.98
7.3.330.0030.00213.13
7.3.320.0000.00513.11
7.3.310.0030.00316.22
7.3.300.0000.00716.30
7.3.290.0060.01016.27
7.3.280.0100.00816.26
7.3.270.0090.00917.40
7.3.260.0090.00916.27
7.3.250.0070.01016.39
7.3.240.0120.00916.37
7.3.230.0050.01116.38
7.3.210.0120.00616.26
7.3.200.0160.00616.57
7.3.190.0090.00916.48
7.3.180.0070.00816.16
7.3.170.0120.00416.26
7.3.160.0120.00316.38
7.3.10.0060.00916.57
7.3.00.0050.00816.59
7.2.330.0060.01216.70
7.2.320.0080.00816.21
7.2.310.0100.00716.38
7.2.300.0000.02116.48
7.2.290.0100.00616.49
7.2.130.0080.00616.95
7.2.120.0080.00616.97
7.2.110.0060.00716.80
7.2.100.0020.01216.79
7.2.90.0060.01016.73
7.2.80.0080.00716.88
7.2.70.0060.00616.91
7.2.60.0090.00516.80
7.2.50.0060.00916.84
7.2.40.0050.01016.91
7.2.30.0030.01216.87
7.2.20.0090.00517.07
7.2.10.0060.00916.81
7.2.00.0060.00916.63
7.1.250.0070.00715.83
7.1.200.0030.00615.76
7.1.70.0030.00616.93
7.1.60.0080.01217.14
7.1.20.0200.06040.35
7.1.10.0170.05322.20
7.1.00.0070.06022.37
7.0.200.0000.01116.78
7.0.160.0030.06021.78
7.0.150.0130.05321.78
7.0.140.0030.06021.70
7.0.130.0070.05721.84
7.0.120.0100.05021.87
7.0.110.0070.06021.92
7.0.100.0100.05321.83
7.0.90.0070.06021.87
7.0.80.0070.05721.87
7.0.70.0230.05722.02
7.0.60.0070.06021.79
7.0.50.0130.05321.93
7.0.40.0070.05721.88
7.0.30.0070.06321.75
7.0.20.0070.06321.85
7.0.10.0130.05721.93
7.0.00.0030.08021.89

preferences:
26.54 ms | 403 KiB | 5 Q