3v4l.org

run code in 500+ PHP versions simultaneously
<?php class NarrowBoolFalse3 { /** * @param bool|int|false|int<0, max> $param */ public function go(bool|int|false $param) { if (rand(0, 1)) { return rand(0, 1) ? true : false; } return 1; } }

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.70.0210.00617.09
8.3.60.0300.01117.01
8.3.50.0090.01017.32
8.3.40.0250.00917.37
8.3.30.0230.00917.21
8.3.20.0280.00717.21
8.3.10.0270.00717.25
8.3.00.0270.00917.29
8.2.190.0100.00917.77
8.2.180.0290.00917.17
8.2.170.0350.00617.41
8.2.160.0300.01217.54
8.2.150.0320.00818.49
8.2.140.0260.01117.21
8.2.130.0310.01117.29
8.2.120.0280.01117.32
8.2.110.0320.00417.25
8.2.100.0320.00317.24
8.2.90.0280.00517.46
8.2.80.0270.00717.17
8.2.70.0300.00317.20
8.2.60.0270.01017.13
8.2.50.0280.00517.72
8.2.40.0280.00217.75
8.2.30.0220.00917.72
8.2.20.0210.01017.75
8.2.10.0260.00817.72
8.2.00.0250.00917.69
8.1.280.0300.00716.58
8.1.270.0270.00916.91
8.1.260.0290.00517.07
8.1.250.0240.01016.99
8.1.240.0240.00516.92
8.1.230.0290.00417.02
8.1.220.0210.01316.83
8.1.210.0280.00717.04
8.1.200.0310.00616.82
8.1.190.0260.01116.92
8.1.180.0240.00717.46
8.1.170.0250.00518.03
8.1.160.0230.00817.53
8.1.150.0210.00717.48
8.1.140.0220.00517.43
8.1.130.0190.00917.65
8.1.120.0220.00817.59
8.1.110.0230.00717.64
8.1.100.0200.01017.71
8.1.90.0210.00617.71
8.1.80.0200.00817.63
8.1.70.0250.00617.60
8.1.60.0270.00917.75
8.1.50.0220.01117.62
8.1.40.0240.00517.65
8.1.30.0250.00717.81
8.1.20.0250.00718.05
8.1.10.0230.00717.63
8.1.00.0180.01217.50
8.0.300.0200.00916.58
8.0.290.0200.00916.58
8.0.280.0200.00517.31
8.0.270.0230.00517.31
8.0.260.0230.00317.31
8.0.250.0200.00617.31
8.0.240.0230.00717.31
8.0.230.0250.00417.70
8.0.220.0210.00517.31
8.0.210.0220.00517.31
8.0.200.0200.00617.33
8.0.190.0190.00817.31
8.0.180.0210.00417.32
8.0.170.0210.00517.31
8.0.160.0190.00817.31
8.0.150.0230.00517.31
8.0.140.0180.00917.31
8.0.130.0220.00517.31
8.0.120.0210.00517.31
8.0.110.0230.00417.31
8.0.100.0210.00617.31
8.0.90.0200.00617.31
8.0.80.0160.00917.31
8.0.70.0190.00617.31
8.0.60.0220.00517.72
8.0.50.0190.00817.31
8.0.30.0180.00717.31
8.0.20.0190.00617.31
8.0.10.0210.00517.31

preferences:
45.91 ms | 849 KiB | 4 Q