3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test() { echo $foo->bar ?? null; } function test2() { echo isset($foo->bar) ? $foo->bar : null; }

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.130.0040.01118.42
8.3.120.0100.00018.60
8.3.110.0000.00818.21
8.3.100.0120.00316.45
8.3.90.0130.00626.77
8.3.80.0090.00016.46
8.3.70.0090.00916.25
8.3.60.0110.01118.12
8.3.50.0090.00616.67
8.3.40.0070.00720.06
8.3.30.0110.00421.80
8.3.20.0080.00024.18
8.3.10.0070.00024.66
8.3.00.0100.00626.35
8.2.250.0040.00416.60
8.2.240.0070.01118.75
8.2.230.0000.00920.94
8.2.220.0110.00424.06
8.2.210.0000.00726.77
8.2.200.0030.00616.63
8.2.190.0100.01016.58
8.2.180.0140.00716.38
8.2.170.0060.00918.66
8.2.160.0070.00722.96
8.2.150.0040.00425.66
8.2.140.0080.00024.66
8.2.130.0070.00726.35
8.2.120.0080.00026.35
8.2.110.0060.00326.35
8.2.100.0030.00526.35
8.2.90.0060.00326.35
8.2.80.0030.00626.35
8.2.70.0090.00026.35
8.2.60.0060.00326.35
8.2.50.0030.00626.35
8.2.40.0080.00026.35
8.2.30.0060.00326.35
8.2.20.0090.00026.35
8.2.10.0040.00426.35
8.2.00.0090.00026.35
8.1.300.0060.00317.52
8.1.290.0100.00030.84
8.1.280.0070.00725.92
8.1.270.0030.00524.66
8.1.260.0000.00826.35
8.1.250.0000.00926.35
8.1.240.0030.00626.35
8.1.230.0030.00626.35
8.1.220.0000.00826.35
8.1.210.0090.00026.35
8.1.200.0080.00026.35
8.1.190.0090.00026.35
8.1.180.0060.00326.35
8.1.170.0090.00026.35
8.1.160.0040.00426.35
8.1.150.0040.00426.35
8.1.140.0040.00426.35
8.1.130.0030.00626.35
8.1.120.0060.00326.35
8.1.110.0040.00426.35
8.1.100.0040.00426.35
8.1.90.0060.00326.35
8.1.80.0060.00326.35
8.1.70.0060.00326.35
8.1.60.0100.00026.35
8.1.50.0060.00326.35
8.1.40.0050.00326.35
8.1.30.0060.00326.35
8.1.20.0030.00626.35
8.1.10.0030.00626.35
8.1.00.0030.00626.35

preferences:
24.6 ms | 403 KiB | 5 Q