3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fooBar = [0 => 'foo', 1 => 'bar']; var_dump('loose', in_array(true, $fooBar), in_array(false, $fooBar), in_array(0, $fooBar), in_array(1, $fooBar)); var_dump('strict', in_array(true, $fooBar, true), in_array(false, $fooBar, true), in_array(0, $fooBar, true), in_array(1, $fooBar, true));

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.00816.49
8.5.00.0140.00719.78
8.4.160.0080.01322.20
8.4.150.0020.00114.05
8.4.140.0130.00917.47
8.4.130.0060.00417.48
8.4.120.0110.00522.39
8.4.110.0080.00822.27
8.4.100.0130.00817.39
8.4.90.0130.00817.70
8.4.80.0120.01017.58
8.4.70.0390.00717.48
8.4.60.0440.00817.32
8.4.50.0390.00417.53
8.4.40.0310.00317.07
8.4.30.0240.00717.36
8.4.20.0190.00417.54
8.4.10.0210.00217.37
8.3.290.0140.00722.39
8.3.280.0120.00720.02
8.3.270.0130.00816.36
8.3.260.0130.00716.42
8.3.250.0120.00719.04
8.3.240.0100.00916.74
8.3.230.0090.01016.45
8.3.220.0170.00416.97
8.3.210.0160.00616.97
8.3.200.0260.00716.97
8.3.190.0260.00416.97
8.3.180.0160.00516.97
8.3.170.0300.00716.97
8.3.160.0160.00716.97
8.3.150.0210.00216.97
8.3.140.0340.00516.97
8.3.130.0260.00816.97
8.3.120.0170.00616.97
8.3.110.0360.00616.97
8.3.100.0360.01216.97
8.3.90.0420.00916.97
8.3.80.0450.00616.97
8.3.70.0450.00816.97
8.3.60.0350.00516.97
8.3.50.0290.00716.97
8.3.40.0370.00817.33
8.3.30.0240.00217.44
8.3.20.0440.00317.40
8.3.10.0310.00817.48
8.3.00.0190.00817.20
8.2.300.0130.00820.36
8.2.290.0080.00220.26
8.2.280.0200.00716.97
8.2.270.0200.00416.97
8.2.260.0170.00616.97
8.2.250.0320.01016.97
8.2.240.0370.00316.97
8.2.230.0320.01016.97
8.2.220.0320.01016.97
8.2.210.0350.00716.97
8.2.200.0340.00816.97
8.2.190.0340.00716.97
8.2.180.0320.01016.97
8.2.170.0360.01117.50
8.2.160.0360.00717.58
8.2.150.0310.01117.37
8.2.140.0240.00417.38
8.2.130.0380.00617.21
8.2.120.0340.00717.41
8.2.110.0360.00917.28
8.2.100.0350.01017.40
8.2.90.0350.00717.58
8.2.80.0330.00717.05
8.2.70.0300.01317.37
8.2.60.0390.00717.37
8.2.50.0380.00817.30
8.2.40.0320.01117.47
8.2.30.0320.00417.29
8.2.20.0380.00717.23
8.2.10.0330.00417.63
8.2.00.0220.00617.32
8.1.340.0130.00820.15

preferences:
52.79 ms | 403 KiB | 5 Q