3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = false; var_dump($a == 'a' || $a == 'b' || $a === null); var_dump(in_array($a, ['a', 'b', 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.20.0100.00820.24
8.5.10.0100.00716.51
8.5.00.0120.00922.87
8.4.170.0120.00923.91
8.4.160.0130.00823.85
8.4.150.0060.00716.78
8.4.140.0100.01217.40
8.4.130.0380.01017.38
8.4.120.0420.00717.47
8.4.110.0440.00617.55
8.4.100.0430.01117.44
8.4.90.0430.00717.58
8.4.80.0410.00917.70
8.4.70.0390.01017.84
8.4.60.0280.00417.61
8.4.50.0320.00517.52
8.4.40.0400.01217.62
8.4.30.0220.00717.16
8.4.20.0370.00617.41
8.4.10.0170.00817.35
8.3.300.0090.01119.07
8.3.290.0110.01118.27
8.3.280.0090.00216.19
8.3.270.0120.00816.67
8.3.260.0200.00316.43
8.3.250.0320.00916.38
8.3.240.0280.00416.32
8.3.230.0270.00616.49
8.3.220.0370.01216.60
8.3.210.0460.00916.02
8.3.200.0430.00616.62
8.3.190.0230.00516.69
8.3.180.0390.00816.50
8.3.170.0420.01016.32
8.3.160.0440.00416.29
8.3.150.0370.00816.22
8.3.140.0380.00616.36
8.3.130.0320.01216.29
8.3.120.0380.00716.51
8.3.110.0410.00416.35
8.3.100.0400.00916.21
8.3.90.0440.00716.24
8.3.80.0440.00616.28
8.3.70.0410.00716.44
8.3.60.0290.00516.43
8.3.50.0400.01116.32
8.3.40.0380.01017.64
8.3.30.0200.00417.29
8.3.20.0150.00317.25
8.3.10.0190.00717.39
8.3.00.0380.00917.44
8.2.300.0130.00717.82
8.2.290.0310.00916.63
8.2.280.0390.00516.39
8.2.270.0350.00716.23
8.2.260.0370.00616.00
8.2.250.0330.00816.35
8.2.240.0320.01116.32
8.2.230.0350.00816.20
8.2.220.0250.00816.44
8.2.210.0150.00516.32
8.2.200.0290.00316.15
8.2.190.0180.00316.20
8.2.180.0170.00616.73
8.2.170.0160.00517.76
8.2.160.0160.00417.75
8.2.150.0160.00517.57
8.2.140.0220.00817.39
8.2.130.0160.00417.48
8.2.120.0190.00617.56
8.2.110.0240.00517.41
8.2.100.0330.01017.50
8.2.90.0360.00817.80
8.2.80.0360.00517.59
8.2.70.0350.00917.56
8.2.60.0350.00717.42
8.2.50.0330.01017.37
8.2.40.0300.00617.61
8.2.30.0290.00917.40
8.2.20.0290.00317.55
8.2.10.0350.00517.14
8.2.00.0360.00717.68
8.1.340.0100.00919.83

preferences:
48.61 ms | 403 KiB | 5 Q