3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** * @param mixed[] $a */ function test(array $a): void { if (isset($a['a']['b'])) { echo 'OK'; } } class Foo { } test(['a' => new Foo()]);

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.120.0040.00419.07
8.3.110.0060.00320.94
8.3.100.0100.00618.58
8.3.90.0040.00426.77
8.3.80.0040.00416.46
8.3.70.0140.00716.63
8.3.60.0140.00418.43
8.3.50.0210.00618.30
8.3.40.0140.00318.65
8.3.30.0110.00718.91
8.3.20.0080.00024.18
8.3.10.0040.00424.66
8.3.00.0040.00426.16
8.2.240.0090.00016.52
8.2.230.0040.00422.58
8.2.220.0060.01224.06
8.2.210.0000.00826.77
8.2.200.0090.00018.29
8.2.190.0090.00616.88
8.2.180.0070.01125.92
8.2.170.0110.00718.82
8.2.160.0140.00022.96
8.2.150.0060.00325.66
8.2.140.0000.00724.66
8.2.130.0050.00326.16
8.2.120.0070.00026.16
8.2.110.0030.00720.38
8.2.100.0080.00417.91
8.2.90.0050.00317.63
8.2.80.0080.00018.78
8.2.70.0050.00317.80
8.2.60.0000.00918.22
8.2.50.0000.00818.10
8.2.40.0060.00321.10
8.2.30.0060.00317.99
8.2.20.0030.00620.41
8.2.10.0050.00218.11
8.2.00.0030.00519.18
8.1.300.0040.00416.23
8.1.290.0030.00630.84
8.1.280.0130.00325.92
8.1.270.0040.00423.99
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00322.19
8.1.230.0040.00722.20
8.1.220.0030.00617.74
8.1.210.0030.00518.77
8.1.200.0030.00617.35
8.1.190.0000.00817.10
8.1.180.0000.00918.10
8.1.170.0040.00418.53
8.1.160.0040.00418.77
8.1.150.0000.00818.66
8.1.140.0040.00417.37
8.1.130.0000.00818.74
8.1.120.0070.00017.37
8.1.110.0070.00017.27
8.1.100.0000.00717.38
8.1.90.0000.00717.43
8.1.80.0040.00417.37
8.1.70.0000.00717.38
8.1.60.0040.00417.39
8.1.50.0130.00017.40
8.1.40.0160.00917.30
8.1.30.0220.00417.54
8.1.20.0210.00417.43
8.1.10.0190.00417.46
8.1.00.0060.00617.38
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0030.00318.38
8.0.270.0070.00016.68
8.0.260.0040.00218.38
8.0.250.0030.00316.82
8.0.240.0000.00716.87
8.0.230.0000.00716.79
8.0.220.0030.00316.82
8.0.210.0000.00716.88
8.0.200.0030.00516.95
8.0.190.0030.00616.83
8.0.180.0140.00616.79
8.0.170.0170.00316.82
8.0.160.0140.00516.80
8.0.150.0160.00416.72
8.0.140.0160.00316.68
8.0.130.0170.00316.76
8.0.120.0090.01216.87
8.0.110.0160.00716.75
8.0.100.0210.00016.78
8.0.90.0220.00016.89
8.0.80.0170.00416.70
8.0.70.0200.00316.82
8.0.60.0150.00416.88
8.0.50.0130.00616.80
8.0.30.0160.00316.74
8.0.20.0050.01616.77
8.0.10.0120.00816.88
7.4.330.0050.00015.55
7.4.320.0060.00016.26
7.4.300.0040.00416.48
7.4.290.0030.00316.37
7.4.280.0190.00316.39
7.4.270.0180.00516.40
7.4.260.0160.00416.26
7.4.250.0220.00016.45
7.4.240.0170.00416.25
7.4.230.0120.01016.39
7.4.220.0100.00716.40
7.4.210.0100.00916.42
7.4.200.0220.00016.39
7.4.190.0140.00716.41
7.4.180.0090.01016.48
7.4.160.0110.00716.56
7.4.150.0120.00616.43
7.4.140.0140.00716.15
7.4.130.0060.00316.33
7.4.120.0150.00316.24
7.4.110.0100.00516.22
7.4.100.0060.00616.40
7.4.90.0090.00316.41
7.4.80.0080.00816.32
7.4.70.0180.00316.46
7.4.60.0040.00416.32
7.4.50.0140.00516.26
7.4.40.0060.00616.25
7.4.30.0070.00716.32
7.4.20.0040.00416.33
7.4.10.0120.00016.34
7.4.00.0100.00316.39

preferences:
27.81 ms | 403 KiB | 5 Q