3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Clazz { public ?int $foo; public function __construct(int $foo) { $this->foo = $foo; } } $class = new Clazz(1); unset($class->foo); echo $class->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.140.0040.01120.79
8.3.130.0040.00418.56
8.3.120.0040.00418.99
8.3.110.0070.00320.94
8.3.100.0000.00824.06
8.3.90.0070.00726.77
8.3.80.0130.00316.50
8.3.70.0140.00718.38
8.3.60.0060.01516.62
8.3.50.0180.00020.54
8.3.40.0190.00020.18
8.3.30.0100.00319.04
8.3.20.0000.00724.18
8.3.10.0060.00324.66
8.3.00.0040.01126.16
8.2.250.0070.00018.68
8.2.240.0060.00317.21
8.2.230.0070.00022.58
8.2.220.0080.00037.54
8.2.210.0000.00826.77
8.2.200.0090.00016.63
8.2.190.0200.00316.73
8.2.180.0120.00925.92
8.2.170.0040.01118.91
8.2.160.0090.00622.96
8.2.150.0030.00625.66
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0080.00021.05
8.2.110.0070.00421.00
8.2.100.0200.00618.17
8.2.90.0130.00618.10
8.2.80.0140.00618.61
8.2.70.0140.00618.03
8.2.60.0160.00317.97
8.2.50.0150.00418.21
8.2.40.0120.00618.33
8.2.30.0110.00718.23
8.2.20.0130.00319.48
8.2.10.0080.00918.24
8.2.00.0120.00418.81
8.1.300.0060.00317.84
8.1.290.0000.00930.84
8.1.280.0070.00725.92
8.1.270.0040.00423.99
8.1.260.0030.00626.35
8.1.250.0000.00728.09
8.1.240.0110.00621.24
8.1.230.0160.00418.13
8.1.220.0150.00218.11
8.1.210.0090.00918.61
8.1.200.0130.00517.83
8.1.190.0080.01017.84
8.1.180.0120.00718.27
8.1.170.0120.00618.03
8.1.160.0150.00318.64
8.1.150.0150.00318.51
8.1.140.0080.00817.92
8.1.130.0100.00718.63
8.1.120.0100.00717.87
8.1.110.0130.00317.85
8.1.100.0090.00817.91
8.1.90.0120.00517.93
8.1.80.0100.00617.91
8.1.70.0120.00617.92
8.1.60.0110.00617.85
8.1.50.0100.00617.78
8.1.40.0080.00817.79
8.1.30.0090.00817.81
8.1.20.0180.00317.86
8.1.10.0180.00517.75
8.1.00.0170.00517.73
8.0.300.0090.00518.61
8.0.290.0110.00717.53
8.0.280.0130.00518.43
8.0.270.0180.00017.63
8.0.260.0110.00718.36
8.0.250.0120.00517.70
8.0.240.0100.00817.65
8.0.230.0120.00517.72
8.0.220.0120.00517.69
8.0.210.0100.00717.67
8.0.200.0140.00417.69
8.0.190.0160.00317.38
8.0.180.0170.00317.25
8.0.170.0120.00717.28
8.0.160.0150.00517.25
8.0.150.0130.00217.23
8.0.140.0080.00817.17
8.0.130.0130.00217.25
8.0.120.0100.00617.14
8.0.110.0100.00517.25
8.0.100.0150.00217.21
8.0.90.0110.00717.30
8.0.80.0130.00617.21
8.0.70.0110.00717.28
8.0.60.0130.00517.17
8.0.50.0160.00217.16
8.0.30.0110.00817.10
8.0.20.0150.00217.25
8.0.10.0130.00317.29
7.4.330.0100.00316.99
7.4.320.0140.00117.39
7.4.300.0110.00617.44
7.4.290.0150.00317.14
7.4.280.0130.00516.98
7.4.270.0180.00117.07
7.4.260.0120.00416.96
7.4.250.0130.00317.08
7.4.240.0130.00517.02
7.4.230.0070.01016.97
7.4.220.0080.00916.94
7.4.210.0100.00716.93
7.4.200.0090.00616.79
7.4.190.0140.00316.91
7.4.180.0130.00417.11
7.4.160.0100.00417.16
7.4.150.0130.00317.07
7.4.140.0100.00616.92
7.4.130.0110.00516.94
7.4.120.0120.00417.03
7.4.110.0140.00216.94
7.4.100.0120.00516.93
7.4.90.0100.00417.03
7.4.80.0110.00417.04
7.4.70.0140.00317.00
7.4.60.0090.00617.02
7.4.50.0090.00517.03
7.4.40.0100.00516.92
7.4.30.0090.00716.72
7.4.20.0100.00717.04
7.4.10.0080.00916.97
7.4.00.0110.00616.78

preferences:
39.74 ms | 403 KiB | 5 Q