3v4l.org

run code in 300+ PHP versions simultaneously
<?php function testBooleanOperators($flag, $exp) { return $flag || $exp; } var_dump(testBooleanOperators(true, 'abc')); var_dump(testBooleanOperators('I am truthy!', 'abc')); var_dump(testBooleanOperators(false, 'abc')); var_dump(testBooleanOperators(false, null));

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.0120.00618.10
8.3.50.0090.00616.48
8.3.40.0130.00618.67
8.3.30.0040.01518.59
8.3.20.0000.00820.85
8.3.10.0060.00321.73
8.3.00.0000.00722.24
8.2.180.0040.01116.63
8.2.170.0150.00022.96
8.2.160.0130.00022.27
8.2.150.0000.00724.18
8.2.140.0080.00024.66
8.2.130.0040.00419.70
8.2.120.0070.00026.35
8.2.110.0030.00620.97
8.2.100.0040.00817.78
8.2.90.0040.00417.91
8.2.80.0030.00519.06
8.2.70.0050.00317.63
8.2.60.0040.00417.80
8.2.50.0030.00618.07
8.2.40.0030.00519.89
8.2.30.0070.00017.98
8.2.20.0050.00317.89
8.2.10.0070.00019.08
8.2.00.0070.00017.90
8.1.280.0070.01125.92
8.1.270.0040.00420.20
8.1.260.0000.00826.35
8.1.250.0060.00328.09
8.1.240.0060.00323.92
8.1.230.0070.00420.97
8.1.220.0030.00617.74
8.1.210.0090.00018.77
8.1.200.0060.00317.22
8.1.190.0040.00417.22
8.1.180.0060.00318.10
8.1.170.0000.00818.54
8.1.160.0000.00718.71
8.1.150.0000.00718.82
8.1.140.0000.00720.73
8.1.130.0040.00420.30
8.1.120.0000.00717.39
8.1.110.0020.00517.24
8.1.100.0040.00417.27
8.1.90.0030.00317.35
8.1.80.0000.00717.29
8.1.70.0000.00717.34
8.1.60.0040.00417.44
8.1.50.0070.00017.44
8.1.40.0000.00717.40
8.1.30.0000.00917.46
8.1.20.0050.00817.51
8.1.10.0000.00717.34
8.1.00.0040.00417.32
8.0.300.0000.00820.02
8.0.290.0050.00316.58
8.0.280.0040.00418.36
8.0.270.0030.00317.18
8.0.260.0060.00018.36
8.0.250.0040.00416.79
8.0.240.0050.00316.95
8.0.230.0050.00516.85
8.0.220.0030.00316.88
8.0.210.0040.00416.79
8.0.200.0000.00716.88
8.0.190.0000.00716.96
8.0.180.0040.00416.82
8.0.170.0090.00016.74
8.0.160.0040.00416.76
8.0.150.0000.00816.67
8.0.140.0000.00816.81
8.0.130.0030.00313.33
8.0.120.0000.00816.80
8.0.110.0040.00416.84
8.0.100.0000.00716.69
8.0.90.0040.00416.78
8.0.80.0140.00016.88
8.0.70.0000.00816.88
8.0.60.0000.00716.71
8.0.50.0040.00416.73
8.0.30.0030.01416.99
8.0.20.0120.00617.08
8.0.10.0000.00916.98
8.0.00.0100.00916.61
7.4.330.0000.00516.72
7.4.320.0000.00616.56
7.4.300.0000.00616.44
7.4.290.0000.00616.43
7.4.280.0030.00516.52
7.4.270.0030.00316.46
7.4.260.0000.00716.50
7.4.250.0000.00716.47
7.4.240.0070.00016.42
7.4.230.0030.00316.52
7.4.220.0000.00716.59
7.4.210.0070.01016.55
7.4.200.0030.00316.43
7.4.160.0070.00916.40
7.4.140.0120.00817.86
7.4.130.0120.00916.49
7.4.120.0080.01316.39
7.4.110.0130.00316.57
7.4.100.0100.00716.57
7.4.90.0120.00416.27
7.4.80.0130.01019.39
7.4.70.0080.00916.44
7.4.60.0100.00616.66
7.4.50.0090.00616.46
7.4.40.0130.00316.44
7.4.00.0120.00314.81
7.3.330.0000.00513.25
7.3.320.0060.00013.25
7.3.310.0000.00716.32
7.3.300.0070.00016.29
7.3.290.0000.00816.32
7.3.280.0000.01316.29
7.3.260.0130.00516.35
7.3.240.0080.01016.47
7.3.230.0080.00916.35
7.3.210.0050.01016.27
7.3.200.0080.00816.25
7.3.190.0060.01016.55
7.3.180.0130.00716.43
7.3.170.0140.00516.31
7.3.160.0030.01316.26
7.3.30.0070.00714.63
7.3.20.1590.00714.67
7.3.10.0770.00714.48
7.3.00.1040.00514.81
7.2.330.0120.00916.36
7.2.320.0080.01216.71
7.2.310.0080.00816.57
7.2.300.0070.01016.33
7.2.290.0130.00716.60
7.2.160.0080.00614.65
7.2.150.5900.00014.73
7.2.140.0290.00514.83
7.2.130.0120.01014.73
7.2.120.0410.00514.70
7.2.110.1380.00514.79
7.2.100.6490.00714.61
7.2.90.0330.01114.64
7.2.80.0440.00314.64
7.2.70.1200.00514.55
7.2.60.0190.00614.92
7.2.50.1040.01114.80
7.2.40.1070.00814.75
7.2.30.0530.00314.79
7.2.20.0360.01114.70
7.2.10.0850.00314.80
7.2.00.0520.00614.86
7.1.270.1560.00613.91
7.1.260.0700.00513.75
7.1.250.0110.00913.97

preferences:
31.44 ms | 400 KiB | 5 Q