3v4l.org

run code in 500+ PHP versions simultaneously
<?php class Foo { public ?string $x; } var_dump(((new ReflectionClass(Foo::class))->getProperty('x'))->getDefaultValue());

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.80.0100.00816.80
8.5.70.0080.00718.73
8.5.60.0100.00716.78
8.5.50.0110.00516.59
8.5.30.0090.00817.95
8.5.20.0110.00620.07
8.5.10.0070.00216.83
8.5.00.0110.01119.65
8.4.220.0140.00719.46
8.4.210.0140.00819.49
8.4.180.0150.00819.76
8.4.170.0050.00524.02
8.4.160.0130.01122.20
8.4.150.0070.00516.82
8.4.140.0160.00517.45
8.4.130.0100.01118.72
8.4.120.0080.01324.15
8.4.110.0100.00918.94
8.4.100.0120.00718.81
8.4.90.0160.00622.39
8.4.80.0170.00517.61
8.4.70.0050.00817.45
8.4.60.0140.00517.55
8.4.50.0150.00317.52
8.4.40.0180.00617.18
8.4.30.0170.00517.36
8.4.20.0180.00517.17
8.4.10.0210.00317.16
8.3.310.0130.00618.29
8.3.300.0110.00920.60
8.3.290.0110.00820.66
8.3.280.0120.00918.36
8.3.270.0150.01016.63
8.3.260.0090.01016.45
8.3.250.0160.00318.89
8.3.240.0090.00917.08
8.3.230.0180.00516.16
8.3.220.0060.00516.25
8.3.210.0050.00416.38
8.3.200.0180.00316.46
8.3.190.0180.00615.97
8.3.180.0050.00516.48
8.3.170.0180.00216.29
8.3.160.0210.00216.24
8.3.150.0180.00518.13
8.3.140.0210.00216.27
8.3.130.0170.00216.19
8.3.120.0180.00216.18
8.3.110.0140.00616.50
8.3.100.0190.00316.31
8.3.90.0210.00416.24
8.3.80.0180.00416.58
8.3.70.0190.00516.19
8.3.60.0180.00318.17
8.3.50.0060.00518.33
8.3.40.0130.00517.36
8.3.30.0140.00517.04
8.3.20.0150.00517.07
8.3.10.0160.00217.18
8.3.00.0080.00319.05
8.2.310.0080.01018.11
8.2.300.0110.01020.25
8.2.290.0110.00616.40
8.2.280.0140.00416.50
8.2.270.0130.00516.22
8.2.260.0190.00116.42
8.2.250.0120.00716.49
8.2.240.0150.00418.25
8.2.230.0160.00516.07
8.2.220.0160.00416.24
8.2.210.0130.00517.94
8.2.200.0170.00216.53
8.2.190.0130.00616.41
8.2.180.0130.00418.03
8.2.170.0170.00417.42
8.2.160.0140.00617.01
8.2.150.0160.00517.16
8.2.140.0140.00517.14
8.2.130.0170.00517.38
8.2.120.0120.00617.36
8.2.110.0140.00716.97
8.2.100.0160.00617.16
8.2.90.0180.00317.38
8.2.80.0140.00617.20
8.2.70.0180.00217.28
8.2.60.0170.00417.30
8.2.50.0160.00317.18
8.2.40.0130.00517.14
8.2.30.0150.00417.20
8.2.20.0180.00217.08
8.2.10.0150.00317.07
8.2.00.0170.00316.66
8.1.340.0120.01020.13

preferences:
57.86 ms | 865 KiB | 5 Q