3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); function test(int $test) { echo $test . "\n"; } test((int)'test'); test((int)'123test'); test((int)123.00); test((int)123.123); test((int)true); test((int)false); test((int)null); test((int)123); test((int)[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.4.120.0100.01022.27
8.4.110.0080.01318.57
8.4.100.0110.00917.45
8.4.90.0090.01017.61
8.4.80.0120.00817.88
8.4.70.0090.00317.96
8.4.60.0120.00818.46
8.4.50.0040.00520.32
8.4.40.0090.00917.71
8.4.30.0100.00018.77
8.4.20.0060.01219.71
8.4.10.0040.00419.20
8.3.250.0110.00718.76
8.3.240.0090.01016.65
8.3.230.0070.00216.54
8.3.220.0110.00817.04
8.3.210.0110.00716.41
8.3.200.0040.00516.70
8.3.190.0100.00816.86
8.3.180.0120.00716.71
8.3.170.0120.00618.93
8.3.160.0060.01320.77
8.3.150.0090.00617.28
8.3.140.0110.00417.28
8.3.130.0040.00418.51
8.3.120.0190.00018.80
8.3.110.0060.01320.94
8.3.100.0120.00324.06
8.3.90.0130.00626.77
8.3.80.0490.00730.84
8.3.70.0240.00330.84
8.3.60.0190.00530.84
8.3.50.0050.00330.84
8.3.40.0220.00030.84
8.3.30.0210.00630.84
8.3.20.0140.00430.84
8.3.10.0210.00930.84
8.3.00.0130.00530.84
8.2.290.0110.00820.51
8.2.280.0110.00320.16
8.2.270.0030.01617.15
8.2.260.0000.00818.40
8.2.250.0050.00316.92
8.2.240.0050.00518.73
8.2.230.0060.00322.58
8.2.220.0070.00337.54
8.2.210.0060.00326.77
8.2.200.0160.00530.84
8.2.190.0190.00730.84
8.2.180.0110.00830.84
8.2.170.0200.01030.84
8.2.160.0240.00030.84
8.2.150.0180.00230.84
8.2.140.0200.00030.84
8.2.130.0260.00330.84
8.2.120.0340.01530.84
8.2.110.0160.00430.84
8.2.100.0270.00030.84
8.2.90.0320.00630.84
8.2.80.0320.01330.84
8.2.70.0270.00430.84
8.2.60.0290.00430.84
8.2.50.0220.00030.84
8.2.40.0190.00030.84
8.2.30.0320.00030.84
8.2.20.0330.00930.84
8.2.10.0300.00630.84
8.2.00.0280.00330.84
8.1.330.0110.00821.85
8.1.320.0110.00715.82
8.1.310.0110.00716.59
8.1.300.0090.00017.94
8.1.290.0400.00330.84
8.1.280.0490.00730.84
8.1.270.0480.00730.84
8.1.260.0280.00830.84
8.1.250.0240.01030.84
8.1.240.0390.00330.84
8.1.230.0260.01730.84
8.1.220.0330.00330.84
8.1.210.0160.00530.84
8.1.200.0170.00030.84
8.1.190.0120.00430.84
8.1.180.0190.00630.84
8.1.170.0240.01430.84
8.1.160.0250.01130.84
8.1.150.0270.00530.84
8.1.140.0270.00430.84
8.1.130.0380.00030.84
8.1.120.0280.01030.84
8.1.110.0320.00630.84
8.1.100.0300.00830.84
8.1.90.0320.00730.84
8.1.80.0290.00930.84
8.1.70.0300.00930.84
8.1.60.0340.00930.84
8.1.50.0290.01830.84
8.1.40.0300.00430.84
8.1.30.0240.00430.84
8.1.20.0300.00530.84
8.1.10.0170.01030.84
8.1.00.0260.00330.84

preferences:
26.6 ms | 403 KiB | 5 Q