3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test(int $test) { echo $test . "\n"; } //test('test'); // type error //test('123test'); // type error test(123.00); test(123.123); // deprecation warning test(true); test(false); //test(null); // type error test(123); //test([1]); // type error

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.0110.00620.18
8.5.10.0110.00816.67
8.5.00.0100.01121.62
8.4.170.0060.00420.59
8.4.160.0080.01223.84
8.4.150.0030.00014.05
8.4.140.0090.01217.73
8.4.130.0180.00318.10
8.4.120.0110.00820.48
8.4.110.0100.00518.98
8.4.100.0060.00417.73
8.4.90.0110.01117.91
8.4.80.0110.00918.02
8.4.70.0080.00118.11
8.4.60.0100.01118.49
8.4.50.0060.00618.77
8.4.40.0110.00717.67
8.4.30.0030.00718.52
8.4.20.0070.01419.68
8.4.10.0040.00419.39
8.3.300.0080.01220.85
8.3.290.0170.00818.43
8.3.280.0130.00718.38
8.3.270.0130.00816.71
8.3.260.0100.00816.75
8.3.250.0010.00718.87
8.3.240.0140.00716.64
8.3.230.0110.00716.66
8.3.220.0140.00517.09
8.3.210.0120.00816.54
8.3.200.0040.00416.84
8.3.190.0090.01017.11
8.3.180.0040.00416.61
8.3.170.0120.00318.80
8.3.160.0090.00920.84
8.3.150.0150.00317.10
8.3.140.0120.00617.26
8.3.130.0090.00018.21
8.3.120.0060.00320.49
8.3.110.0100.01016.91
8.3.100.0100.01024.06
8.3.90.0000.00826.77
8.3.80.0460.00330.84
8.3.70.0480.00430.84
8.3.60.0210.00330.84
8.3.50.0080.00830.84
8.3.40.0140.01130.84
8.3.30.0220.00930.84
8.3.20.0230.01230.84
8.3.10.0230.01830.84
8.3.00.0330.00630.84
8.2.300.0120.00818.74
8.2.290.0090.00820.26
8.2.280.0060.00218.46
8.2.270.0150.00417.19
8.2.260.0080.00018.16
8.2.250.0000.00818.25
8.2.240.0110.00720.89
8.2.230.0040.00420.94
8.2.220.0030.00637.54
8.2.210.0040.00426.77
8.2.200.0340.00730.84
8.2.190.0370.00630.84
8.2.180.0320.00930.84
8.2.170.0290.00630.84
8.2.160.0430.00030.84
8.2.150.0290.00730.84
8.2.140.0190.00030.84
8.2.130.0130.00630.84
8.2.120.0200.00030.84
8.2.110.0350.00930.84
8.2.100.0320.01130.84
8.2.90.0410.00030.84
8.2.80.0240.01230.84
8.2.70.0290.00430.84
8.2.60.0360.01030.84
8.2.50.0450.01630.84
8.2.40.0370.00330.84
8.2.30.0300.01030.84
8.2.20.0280.01130.84
8.2.10.0290.01030.84
8.2.00.0270.01330.84
8.1.340.0130.00717.57
8.1.330.0130.00617.97
8.1.320.0110.00716.08
8.1.310.0030.00616.47
8.1.300.0040.00416.13
8.1.290.0320.01030.84
8.1.280.0330.01130.84
8.1.270.0240.00630.84
8.1.260.0040.01630.84
8.1.250.0270.00830.84
8.1.240.0390.00730.84
8.1.230.0280.01030.84
8.1.220.0250.00630.84
8.1.210.0320.00330.84
8.1.200.0300.00730.84
8.1.190.0320.00630.84
8.1.180.0340.00430.84
8.1.170.0320.00630.84
8.1.160.0280.00930.84
8.1.150.0330.00430.84
8.1.140.0260.00930.84
8.1.130.0240.00730.84
8.1.120.0310.00930.84
8.1.110.0170.02030.84
8.1.100.0240.01430.84
8.1.90.0200.01030.84
8.1.80.0230.00030.84
8.1.70.0300.00930.84
8.1.60.0330.00830.84
8.1.50.0380.00430.84
8.1.40.0320.00930.84
8.1.30.0310.00730.84
8.1.20.0270.01030.84
8.1.10.0330.00930.84
8.1.00.0360.00630.84

preferences:
76.5 ms | 403 KiB | 5 Q