3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test($value) { if ($value == 'All' || $value === []) { return FALSE; } return TRUE; } function test2($value) { if ($value == 'All' || $value === 0 || $value === []) { return FALSE; } return TRUE; } var_dump(test(0)); var_dump(test2(0));

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.0080.01122.36
8.4.110.0090.01018.79
8.4.100.0050.00417.86
8.4.90.0090.01220.56
8.4.80.0040.00420.65
8.4.70.0120.00919.13
8.4.60.0150.00622.35
8.4.50.0040.00422.18
8.4.40.0090.00920.27
8.4.30.0140.00618.64
8.4.20.0040.01219.46
8.4.10.0090.00024.06
8.3.250.0100.00518.68
8.3.240.0130.00616.54
8.3.230.0060.00816.33
8.3.220.0060.00119.13
8.3.210.0080.01216.67
8.3.200.0080.00416.61
8.3.190.0120.00817.27
8.3.180.0100.00718.73
8.3.170.0100.01017.41
8.3.160.0150.00416.50
8.3.150.0120.00317.17
8.3.140.0030.00616.68
8.3.130.0000.00916.63
8.3.120.0050.00318.93
8.3.110.0060.00320.94
8.3.100.0100.00016.60
8.3.90.0080.00026.77
8.3.80.0070.00318.30
8.3.70.0070.01116.58
8.3.60.0070.00716.32
8.3.50.0110.00420.18
8.3.40.0070.00719.94
8.3.30.0070.00718.71
8.3.20.0040.00424.18
8.3.10.0040.00424.66
8.3.00.0050.00226.16
8.2.290.0100.00816.96
8.2.280.0060.01219.93
8.2.270.0130.00616.32
8.2.260.0030.00616.89
8.2.250.0040.00418.02
8.2.240.0130.00318.59
8.2.230.0080.00022.58
8.2.220.0030.00624.06
8.2.210.0000.00826.77
8.2.200.0070.00316.13
8.2.190.0040.01416.58
8.2.180.0150.00725.92
8.2.170.0110.00418.79
8.2.160.0100.00322.96
8.2.150.0040.00425.66
8.2.140.0070.00024.66
8.2.130.0080.00026.16
8.2.120.0090.00026.16
8.2.110.0030.00720.72
8.2.100.0070.00717.94
8.2.90.0080.00019.17
8.2.80.0030.00617.97
8.2.70.0030.00617.50
8.2.60.0090.00017.93
8.2.50.0000.00918.07
8.2.40.0060.00317.84
8.2.30.0040.00417.94
8.2.20.0040.00420.54
8.2.10.0000.00718.18
8.2.00.0050.00219.19
8.1.330.0080.01116.07
8.1.320.0090.00915.95
8.1.310.0040.00416.71
8.1.300.0060.00317.66
8.1.290.0040.00430.84
8.1.280.0060.00925.92
8.1.270.0040.00424.66
8.1.260.0060.00326.35
8.1.250.0090.00028.09
8.1.240.0030.00621.24
8.1.230.0080.00419.54
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0060.00317.35
8.1.190.0040.00417.13
8.1.180.0080.00018.10
8.1.170.0060.00318.65
8.1.160.0000.00718.89
8.1.150.0000.00818.57
8.1.140.0040.00417.40
8.1.130.0110.00417.36
8.1.120.0100.00617.39
8.1.110.0130.00417.39
8.1.100.0120.00417.41
8.1.90.0120.00517.40
8.1.80.0150.00117.44
8.1.70.0140.00217.41
8.1.60.0160.00417.57
8.1.50.0130.00617.44
8.1.40.0150.00417.52
8.1.30.0150.00417.58
8.1.20.0130.00517.56
8.1.10.0160.00317.43
8.1.00.0140.00617.41
8.0.300.0040.00418.77
8.0.290.0080.00016.63
8.0.280.0040.00418.38
8.0.270.0070.00016.68
8.0.260.0120.00417.16
8.0.250.0100.00517.16
8.0.240.0140.00217.16
8.0.230.0110.00517.16
8.0.220.0120.00617.16
8.0.210.0100.00417.16
8.0.200.0110.00317.16
8.0.190.0100.00517.16
8.0.180.0090.00617.16
8.0.170.0110.00317.16
8.0.160.0070.00717.16
8.0.150.0060.00817.16
8.0.140.0090.00517.16
8.0.130.0130.00117.16
8.0.120.0120.00317.16
8.0.110.0100.00317.16
8.0.100.0100.00417.16
8.0.90.0090.00417.16
8.0.80.0110.00317.16
8.0.70.0060.00817.16
8.0.60.0110.00217.16
8.0.50.0080.00617.16
8.0.30.0100.00417.16
8.0.20.0100.00417.16
8.0.10.0060.00717.16
7.4.330.0060.00316.95

preferences:
30.07 ms | 403 KiB | 5 Q