3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public function __set($key, $value) { trigger_error("Class uses undeclared property: " . __CLASS__ . "->" . $key, E_USER_WARNING); $this->{$key} = $value; } public function usesDynamicProp() { $this->undeclaredProp = "test value"; } public function getsDynamicProp() { var_dump($this->undeclaredProp); } } $o = new Test(); $o->usesDynamicProp(); $o->getsDynamicProp(); // Subsequent calls do not trigger the warning because the property exists, so it will only occur once per script execution $o->usesDynamicProp();

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.20.0070.01219.50
8.5.10.0110.00816.62
8.5.00.0110.01019.82
8.4.170.0130.00723.89
8.4.160.0100.01223.99
8.4.150.0030.00014.05
8.4.140.0140.00917.58
8.4.130.0160.00517.82
8.4.120.0090.00920.74
8.4.110.0090.01122.71
8.4.100.0120.00918.95
8.4.90.0100.00922.28
8.4.80.0120.00617.94
8.4.70.0060.00317.89
8.4.60.0140.00618.54
8.4.50.0080.01018.01
8.4.40.0000.00817.89
8.4.30.0130.00720.38
8.4.20.0150.00419.75
8.4.10.0030.00619.89
8.3.300.0110.01020.85
8.3.290.0150.00720.93
8.3.280.0150.00818.56
8.3.270.0100.01016.90
8.3.260.0140.00616.71
8.3.250.0080.00519.16
8.3.240.0150.00417.05
8.3.230.0160.00316.95
8.3.220.0040.00317.18
8.3.210.0120.00918.78
8.3.200.0130.00716.81
8.3.190.0150.00517.52
8.3.180.0090.01016.94
8.3.170.0080.01116.57
8.3.160.0060.00318.63
8.3.150.0070.01118.63
8.3.140.0000.00917.11
8.3.130.0000.00918.75
8.3.120.0080.00020.46
8.3.110.0090.00016.61
8.3.100.0080.00024.06
8.3.90.0110.00726.77
8.3.80.0040.00416.88
8.3.70.0040.01118.68
8.3.60.0070.00718.55
8.3.50.0120.00919.89
8.3.40.0090.00618.82
8.3.30.0040.01118.84
8.3.20.0040.00424.18
8.3.10.0040.00424.66
8.3.00.0020.00526.16
8.2.300.0150.00818.91
8.2.290.0040.00419.04
8.2.280.0050.00318.65
8.2.270.0110.00718.84
8.2.260.0110.00718.42
8.2.250.0040.00419.15
8.2.240.0000.00917.41
8.2.230.0060.00320.94
8.2.220.0060.00337.54
8.2.210.0090.00026.77
8.2.200.0030.00616.63
8.2.190.0030.01717.00
8.2.180.0070.01125.92
8.2.170.0090.00618.96
8.2.160.0040.01122.96
8.2.150.0040.01125.66
8.2.140.0080.00024.66
8.2.130.0050.00326.16
8.2.120.0030.00626.16
8.2.110.0070.00421.07
8.2.100.0110.00019.32
8.2.90.0040.00417.84
8.2.80.0000.00820.50
8.2.70.0000.00817.63
8.2.60.0000.00917.93
8.2.50.0030.00518.07
8.2.40.0050.00319.94
8.2.30.0040.00417.75
8.2.20.0030.00319.51
8.2.10.0050.00217.75
8.2.00.0070.00019.25
8.1.340.0120.01019.86
8.1.330.0080.01016.81
8.1.320.0140.00416.38
8.1.310.0120.00618.22
8.1.300.0050.00518.27
8.1.290.0090.00030.84
8.1.280.0160.00325.92
8.1.270.0040.00423.97
8.1.260.0030.00526.35
8.1.250.0000.00928.09
8.1.240.0100.00722.06
8.1.230.0040.00720.97
8.1.220.0050.00317.74
8.1.210.0030.00518.98
8.1.200.0090.00017.35
8.1.190.0030.00617.22
8.1.180.0050.00318.10
8.1.170.0030.00618.88
8.1.160.0070.00018.91
8.1.150.0080.00018.61
8.1.140.0000.00717.53
8.1.130.0000.00718.94
8.1.120.0070.00017.49
8.1.110.0000.00817.48
8.1.100.0050.00217.38
8.1.90.0000.00717.38
8.1.80.0040.00417.36
8.1.70.0070.00017.52
8.1.60.0000.00717.49
8.1.50.0040.00417.42
8.1.40.0040.00417.59
8.1.30.0030.00517.50
8.1.20.0030.00617.68
8.1.10.0000.00817.47
8.1.00.0120.00017.52
8.0.300.0080.00020.08
8.0.290.0070.00316.75
8.0.280.0030.00318.45
8.0.270.0030.00316.91
8.0.260.0030.00318.38
8.0.250.0050.00317.02
8.0.240.0030.00316.90
8.0.230.0040.00416.92
8.0.220.0080.00016.93
8.0.210.0000.00716.96
8.0.200.0030.00316.99
8.0.190.0060.00317.04
8.0.180.0000.00716.98
8.0.170.0030.00617.03
8.0.160.0040.00416.92
8.0.150.0050.00316.79
8.0.140.0000.00716.98
8.0.130.0000.00513.36
8.0.120.0030.00313.43
8.0.110.0090.00413.35
8.0.100.0030.00913.38
8.0.90.0080.00413.34
8.0.80.0120.00013.37
8.0.70.0080.00413.45
8.0.60.0000.01213.39
8.0.50.0070.00513.30
8.0.30.0060.00613.34
8.0.20.0000.01213.46
8.0.10.0120.00013.57
8.0.00.0040.00413.54
7.4.330.0000.00515.55
7.4.320.0030.00316.46
7.4.300.0030.00316.54
7.4.290.0000.00716.62
7.4.280.0000.00816.61
7.4.270.0030.00516.46
7.4.260.0030.00313.36
7.4.250.0090.00413.22
7.4.240.0110.00313.29
7.4.230.0100.00513.38
7.4.220.0000.00913.24
7.4.210.0080.00013.31
7.4.200.0080.00013.21
7.4.190.0030.00513.34
7.4.180.0040.00413.47
7.4.160.0080.00013.33
7.4.150.0060.00213.20
7.4.140.0040.00413.23
7.4.130.0000.00813.25
7.4.120.0020.00713.28
7.4.110.0000.00813.30
7.4.100.0070.00713.32
7.4.90.0070.00313.25
7.4.80.0000.01213.27
7.4.70.0090.00413.23
7.4.60.0060.00613.33
7.4.50.0110.00013.07
7.4.40.0050.00613.13
7.4.30.0120.00013.27
7.4.20.0070.00713.23
7.4.10.0060.00613.25
7.4.00.0090.00413.17
7.3.330.0000.00716.32
7.3.320.0080.00413.22
7.3.310.0030.00913.28
7.3.300.0090.00413.39
7.3.290.0080.00413.41
7.3.280.0000.01313.18
7.3.270.0080.00513.35
7.3.260.0110.00413.20
7.3.250.0080.00613.42
7.3.240.0090.00613.24
7.3.230.0100.00413.28
7.3.220.0130.00013.10
7.3.210.0090.00413.39
7.3.200.0120.00313.19
7.3.190.0100.00513.21
7.3.180.0090.00513.17
7.3.170.0090.00613.43
7.3.160.0150.00013.18
7.3.150.0000.00613.21
7.3.140.0060.00013.17
7.3.130.0050.00013.36
7.3.120.0030.00313.41
7.3.110.0050.00313.11
7.3.100.0060.00513.15
7.3.90.0160.00013.48
7.3.80.0120.00313.18
7.3.70.0050.00613.18
7.3.60.0120.00013.24
7.3.50.0070.00413.28
7.3.40.0030.00313.33
7.3.30.0030.00313.43
7.3.20.0050.00315.24
7.3.10.0040.01215.19
7.3.00.0100.00315.11

preferences:
172.92 ms | 403 KiB | 5 Q