3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Something { private ?stdClass $object = null; public function getObject(): ?stdClass { return $this->object; } } var_dump((new Something)->getObject());

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.130.0110.00918.71
8.4.120.0120.00823.88
8.4.110.0120.00818.00
8.4.100.0130.00618.98
8.4.90.0120.00820.41
8.4.80.0060.00320.59
8.4.70.0150.00618.11
8.4.60.0150.00718.70
8.4.50.0150.00618.86
8.4.40.0160.00319.41
8.4.30.0060.01018.64
8.4.20.0170.00317.69
8.4.10.0130.00323.59
8.3.260.0110.00716.59
8.3.250.0090.00118.63
8.3.240.0120.00817.10
8.3.230.0140.00516.48
8.3.220.0110.00819.09
8.3.210.0080.01118.29
8.3.200.0050.00416.38
8.3.190.0100.00819.01
8.3.180.0110.00717.13
8.3.170.0130.00720.58
8.3.160.0090.00918.43
8.3.150.0180.00017.04
8.3.140.0040.00416.69
8.3.130.0100.00016.78
8.3.120.0040.00418.75
8.3.110.0080.00018.43
8.3.100.0030.00624.06
8.3.90.0030.00626.77
8.3.80.0060.00318.43
8.3.70.0040.01118.18
8.3.60.0090.00916.38
8.3.50.0100.01019.98
8.3.40.0110.00722.05
8.3.30.0100.00718.68
8.3.20.0060.00324.18
8.3.10.0040.00424.66
8.3.00.0030.00626.16
8.2.290.0110.00720.38
8.2.280.0090.01118.17
8.2.270.0160.00317.07
8.2.260.0070.01016.53
8.2.250.0150.00316.36
8.2.240.0060.00316.97
8.2.230.0090.00020.94
8.2.220.0060.00337.54
8.2.210.0110.00726.77
8.2.200.0000.00916.50
8.2.190.0070.00716.58
8.2.180.0120.00625.92
8.2.170.0110.00718.79
8.2.160.0100.00322.96
8.2.150.0080.00025.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0000.00826.16
8.2.110.0030.00720.97
8.2.100.0060.00617.72
8.2.90.0000.00917.78
8.2.80.0030.00617.97
8.2.70.0060.00317.50
8.2.60.0090.00017.38
8.2.50.0030.00618.05
8.2.40.0000.00918.09
8.2.30.0000.00817.85
8.2.20.0000.00719.05
8.2.10.0030.00517.83
8.2.00.0000.00719.13
8.1.330.0120.00621.96
8.1.320.0040.00416.22
8.1.310.0120.00617.86
8.1.300.0030.00620.21
8.1.290.0070.00330.84
8.1.280.0140.00325.92
8.1.270.0040.00424.66
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0090.00022.42
8.1.230.0110.00020.71
8.1.220.0000.00817.74
8.1.210.0110.00318.77
8.1.200.0000.00817.11
8.1.190.0050.00517.10
8.1.180.0050.00318.10
8.1.170.0060.00318.46
8.1.160.0030.00618.64
8.1.150.0000.00818.43
8.1.140.0040.00417.43
8.1.130.0000.00718.83
8.1.120.0030.00617.28
8.1.110.0080.00817.29
8.1.100.0080.00417.28
8.1.90.0070.00617.26
8.1.80.0100.00317.21
8.1.70.0080.00417.20
8.1.60.0100.00317.43
8.1.50.0040.01117.46
8.1.40.0100.00317.35
8.1.30.0070.00717.46
8.1.20.0080.00817.59
8.1.10.0120.00717.38
8.1.00.0090.00917.32
8.0.300.0070.00019.97
8.0.290.0050.00316.63
8.0.280.0030.00318.34
8.0.270.0040.00417.11
8.0.260.0090.00018.39
8.0.250.0030.00316.89
8.0.240.0000.00816.78
8.0.230.0090.00516.79
8.0.220.0100.00316.61
8.0.210.0060.00616.65
8.0.200.0110.00216.75
8.0.190.0000.00816.81
8.0.180.0120.00016.76
8.0.170.0000.01216.66
8.0.160.0070.00416.52
8.0.150.0040.00716.57
8.0.140.0080.00516.79
8.0.130.0140.00016.65
8.0.120.0100.00516.79
8.0.110.0100.00516.74
8.0.100.0090.00616.81
8.0.90.0090.00616.67
8.0.80.0100.00516.80
8.0.70.0090.00616.82
8.0.60.0110.00316.76
8.0.50.0150.00016.82
8.0.30.0110.00416.83
8.0.20.0090.00616.84
8.0.10.0110.00316.87
7.4.330.0050.00015.55
7.4.320.0050.00916.28
7.4.300.0080.00816.43
7.4.290.0060.01116.56
7.4.280.0170.00016.34
7.4.270.0070.01016.49
7.4.260.0150.00416.47
7.4.250.0130.00516.44
7.4.240.0050.00516.41
7.4.230.0000.00916.50
7.4.220.0080.00416.42
7.4.210.0110.00016.34
7.4.200.0070.00516.49
7.4.190.0080.00416.29
7.4.180.0070.00316.38
7.4.160.0040.00916.37
7.4.150.0130.00016.29
7.4.140.0120.00016.05
7.4.130.0110.00016.28
7.4.120.0070.00316.26
7.4.110.0060.00316.32
7.4.100.0030.00916.31
7.4.90.0120.00216.41
7.4.80.0140.00016.23
7.4.70.0040.00916.29
7.4.60.0070.00716.35
7.4.50.0100.00316.16
7.4.40.0110.00316.22
7.4.30.0090.00416.39
7.4.20.0070.00716.20
7.4.10.0140.00016.21
7.4.00.0070.00316.27

preferences:
27.97 ms | 403 KiB | 5 Q