3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = 0.1; var_dump((int)$x); $x = []; var_dump((int)$x);

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.0070.00217.40
8.4.110.0130.00820.50
8.4.100.0140.00717.40
8.4.90.0100.01020.69
8.4.80.0080.00818.86
8.4.70.0070.00120.75
8.4.60.0040.00420.35
8.4.50.0110.01118.48
8.4.40.0060.01017.62
8.4.30.0100.01019.06
8.4.20.0140.00719.23
8.4.10.0060.00319.32
8.3.250.0110.00816.36
8.3.240.0140.00616.42
8.3.230.0110.00716.63
8.3.220.0120.00618.84
8.3.210.0080.00616.50
8.3.200.0080.00116.44
8.3.190.0050.00317.04
8.3.180.0130.00519.06
8.3.170.0070.01317.09
8.3.160.0090.00918.75
8.3.150.0070.01117.01
8.3.140.0080.00018.92
8.3.130.0070.00216.47
8.3.120.0030.00618.74
8.3.110.0100.01018.39
8.3.100.0370.00916.64
8.3.90.0380.00916.53
8.3.80.0460.00316.23
8.3.70.0430.00316.09
8.3.60.0370.01116.25
8.3.50.0280.01715.96
8.3.40.0180.00417.38
8.3.30.0220.00017.38
8.3.20.0230.01017.00
8.3.10.0380.00317.13
8.3.00.0090.01217.38
8.2.290.0130.00816.41
8.2.280.0120.00918.29
8.2.270.0040.01116.41
8.2.260.0120.00316.57
8.2.250.0060.01218.41
8.2.240.0080.00017.16
8.2.230.0210.01216.56
8.2.220.0260.00616.17
8.2.210.0220.01016.17
8.2.200.0210.00616.63
8.2.190.0210.00916.23
8.2.180.0140.00516.44
8.2.170.0290.00017.25
8.2.160.0220.00817.34
8.2.150.0220.00317.34
8.2.140.0250.01117.13
8.2.130.0340.00717.00
8.2.120.0370.00717.38
8.2.110.0320.01217.62
8.2.100.0320.01117.34
8.2.90.0330.00917.50
8.2.80.0370.00717.11
8.2.70.0300.01317.25
8.2.60.0450.00017.25
8.2.50.0290.01417.35
8.2.40.0270.01317.50
8.2.30.0320.00417.25
8.2.20.0360.00417.36
8.2.10.0360.00417.38
8.2.00.0450.00517.25
8.1.330.0080.00716.17
8.1.320.0120.00817.86
8.1.310.0040.00415.99
8.1.300.0040.00416.03
8.1.290.0450.00715.84
8.1.280.0390.00316.00
8.1.270.0430.00417.02
8.1.260.0330.00317.11
8.1.250.0260.00017.11
8.1.240.0260.01017.00
8.1.230.0310.00317.23
8.1.220.0310.00717.13
8.1.210.0290.01016.88
8.1.200.0310.00816.88
8.1.190.0300.00817.00
8.1.180.0330.00717.00
8.1.170.0180.00417.22
8.1.160.0340.00317.00
8.1.150.0210.00616.98
8.1.140.0250.00717.22
8.1.130.0140.00517.00
8.1.120.0330.00017.35
8.1.110.0350.00416.97
8.1.100.0330.00716.97
8.1.90.0220.01617.10
8.1.80.0290.01017.25
8.1.70.0260.01317.13
8.1.60.0320.01017.11
8.1.50.0330.01117.11
8.1.40.0160.01117.38
8.1.30.0330.01017.11
8.1.20.0340.00717.38
8.1.10.0320.00317.34
8.1.00.0270.00917.25

preferences:
27.06 ms | 403 KiB | 5 Q