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.5.10.0110.00616.65
8.5.00.0150.00719.71
8.4.150.0020.00014.05
8.4.140.0140.00817.71
8.4.130.0040.00517.80
8.4.120.0110.00820.58
8.4.110.0090.00918.73
8.4.100.0150.00617.58
8.4.90.0110.00919.39
8.4.80.0130.00817.64
8.4.70.0080.00518.73
8.4.60.0120.00418.82
8.4.50.0110.00918.59
8.4.40.0110.01119.24
8.4.30.0130.00617.47
8.4.20.0090.00318.91
8.4.10.0090.00019.50
8.3.280.0140.00718.18
8.3.270.0120.00916.68
8.3.260.0120.00816.30
8.3.250.0070.01218.91
8.3.240.0140.00516.36
8.3.230.0090.01016.64
8.3.220.0150.00317.23
8.3.210.0130.00618.46
8.3.200.0050.00416.68
8.3.190.0060.00216.87
8.3.180.0060.00418.93
8.3.170.0120.00318.58
8.3.160.0130.00618.93
8.3.150.0120.00617.15
8.3.140.0050.00318.98
8.3.130.0060.00318.35
8.3.120.0060.00318.96
8.3.110.0160.00320.94
8.3.100.0040.00424.06
8.3.90.0040.01526.77
8.3.80.0060.00318.06
8.3.70.0120.00318.43
8.3.60.0120.00618.10
8.3.50.0080.00716.50
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.290.0030.00618.64
8.2.280.0120.00518.15
8.2.270.0110.00718.26
8.2.260.0080.00616.64
8.2.250.0090.00918.36
8.2.240.0050.00318.96
8.2.230.0030.00622.58
8.2.220.0060.00337.54
8.2.210.0180.00026.77
8.2.200.0060.00317.98
8.2.190.0140.00316.58
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.330.0120.00615.96
8.1.320.0130.00915.88
8.1.310.0120.00616.72
8.1.300.0100.01017.50
8.1.290.0030.00630.84
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:
39.35 ms | 403 KiB | 5 Q