3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public stdClass $prop; public function __set($x, $y) { echo "SET\n"; $this->$x = $y; } } $a = new A(); $a->prop = new stdClass; var_dump($a); $a->undeclared = new stdClass; var_dump($a); $a->prop = new stdClass; var_dump($a);

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.0140.00819.35
8.4.120.0130.00620.72
8.4.110.0140.00720.45
8.4.100.0050.00517.95
8.4.90.0110.00920.65
8.4.80.0050.00518.75
8.4.70.0120.00718.73
8.4.60.0120.00820.51
8.4.50.0060.00318.78
8.4.40.0100.01019.45
8.4.30.0090.00618.41
8.4.20.0130.00618.89
8.4.10.0030.00617.89
8.3.260.0110.00816.58
8.3.250.0090.00918.90
8.3.240.0090.01016.63
8.3.230.0110.00516.43
8.3.220.0120.00719.05
8.3.210.0060.00816.98
8.3.200.0050.00316.65
8.3.190.0120.00718.91
8.3.180.0100.00818.88
8.3.170.0100.01017.38
8.3.160.0150.00318.49
8.3.150.0100.01017.19
8.3.140.0040.01516.88
8.3.130.0000.00816.82
8.3.120.0070.00318.84
8.3.110.0050.00520.94
8.3.100.0070.00318.47
8.3.90.0000.00816.74
8.3.80.0060.00317.97
8.3.70.0100.00716.88
8.3.60.0170.00316.63
8.3.50.0070.01018.16
8.3.40.0030.01318.82
8.3.30.0150.00018.88
8.3.20.0080.00022.41
8.3.10.0030.00523.47
8.3.00.0050.00322.50
8.2.290.0050.00617.16
8.2.280.0100.00920.07
8.2.270.0110.00816.82
8.2.260.0070.00716.94
8.2.250.0070.00018.28
8.2.240.0080.00018.33
8.2.230.0090.00022.58
8.2.220.0060.00324.06
8.2.210.0070.00726.77
8.2.200.0030.00618.53
8.2.190.0090.00616.63
8.2.180.0120.00918.54
8.2.170.0100.01322.96
8.2.160.0100.01020.39
8.2.150.0060.00324.18
8.2.140.0070.00024.66
8.2.130.0070.00026.16
8.2.120.0070.00026.16
8.2.110.0040.00420.89
8.2.100.0060.00617.91
8.2.90.0050.00317.91
8.2.80.0040.00419.11
8.2.70.0000.00918.05
8.2.60.0000.00818.09
8.2.50.0040.00418.10
8.2.40.0000.00821.12
8.2.30.0000.00719.10
8.2.20.0070.00017.99
8.2.10.0000.00719.31
8.2.00.0000.00819.10
8.1.330.0130.00616.03
8.1.320.0100.01016.04
8.1.310.0100.00716.84
8.1.300.0030.00616.01
8.1.290.0090.00018.88
8.1.280.0150.00625.92
8.1.270.0050.00322.20
8.1.260.0070.00026.35
8.1.250.0050.00328.09
8.1.240.0090.00022.15
8.1.230.0040.00720.98
8.1.220.0000.00917.74
8.1.210.0030.00518.77
8.1.200.0000.00917.35
8.1.190.0000.00917.23
8.1.180.0040.00418.10
8.1.170.0090.00018.49
8.1.160.0000.00718.84
8.1.150.0000.00718.89
8.1.140.0000.00720.75
8.1.130.0080.00020.05
8.1.120.0030.00317.50
8.1.110.0000.00817.46
8.1.100.0040.00417.34
8.1.90.0040.00417.45
8.1.80.0050.00317.42
8.1.70.0040.00817.45
8.1.60.0000.00717.58
8.1.50.0040.00417.51
8.1.40.0000.00817.44
8.1.30.0050.00217.58
8.1.20.0050.00317.59
8.1.10.0040.00417.52
8.1.00.0030.00617.54
8.0.300.0000.00720.09
8.0.290.0040.00416.75
8.0.280.0040.00418.36
8.0.270.0040.00417.36
8.0.260.0060.00021.92
8.0.250.0050.00317.00
8.0.240.0040.00416.88
8.0.230.0030.00316.92
8.0.220.0030.00316.75
8.0.210.0000.00716.78
8.0.200.0040.00416.93
8.0.190.0030.00616.83
8.0.180.0000.00716.93
8.0.170.0050.00316.95
8.0.160.0000.00816.80
8.0.150.0040.00416.68
8.0.140.0040.00316.88
8.0.130.0000.00613.35
8.0.120.0040.00416.79
8.0.110.0000.00716.74
8.0.100.0000.00716.84
8.0.90.0040.00416.77
8.0.80.0070.01416.90
8.0.70.0040.00416.73
8.0.60.0040.00416.67
8.0.50.0040.00416.95
8.0.30.0090.00817.10
8.0.20.0090.00917.20
8.0.10.0000.00717.02
8.0.00.0220.00316.71
7.4.330.0050.00016.73
7.4.320.0000.00616.54
7.4.300.0000.00616.60
7.4.290.0080.00016.39
7.4.280.0050.00316.51
7.4.270.0000.00716.58
7.4.260.0030.00313.29
7.4.250.0040.00416.45
7.4.240.0030.00316.51
7.4.230.0000.00716.50
7.4.220.0030.00316.51
7.4.210.0060.01016.55
7.4.200.0030.00316.48
7.4.140.0100.00717.86
7.4.130.0230.00016.57
7.4.120.0120.00916.69
7.4.110.0070.01016.41
7.4.100.0100.00716.52
7.4.90.0090.00916.52
7.4.80.0100.00919.39
7.4.70.0100.01016.65
7.4.60.0130.00416.59
7.4.50.0110.00416.63
7.4.40.0130.01016.58
7.4.10.0070.00715.07
7.4.00.0090.01014.80
7.3.330.0070.00016.00
7.3.320.0000.00513.30
7.3.310.0030.00316.29
7.3.300.0030.00316.17
7.3.290.0060.00016.08
7.3.280.0070.00816.13
7.3.260.0120.00916.28
7.3.240.0100.00816.33
7.3.230.0170.00016.35
7.3.210.0080.00816.50
7.3.200.0120.00416.21
7.3.190.0030.01216.18
7.3.180.0030.01816.13
7.3.170.0080.00816.29
7.3.160.0000.01716.27
7.3.130.0100.01014.75
7.3.120.0070.01014.77
7.3.110.0060.01314.88
7.3.100.0100.00314.78
7.3.90.0120.01214.60
7.3.80.0050.01114.65
7.3.70.0040.00814.75
7.3.60.0060.00914.56
7.3.50.0040.00814.49
7.3.40.0030.01114.31
7.3.30.0050.00814.58
7.3.20.0100.00715.54
7.3.10.0090.00515.32
7.3.00.0060.01015.53
7.2.330.0030.01316.36
7.2.320.0100.00716.31
7.2.310.0060.01016.40
7.2.300.0030.01316.12
7.2.290.0180.00416.22
7.2.260.0070.01115.08
7.2.250.0150.00414.62
7.2.240.0090.00615.07
7.2.230.0030.01014.99
7.2.220.0090.00514.77
7.2.210.0060.00914.70
7.2.200.0100.00514.77
7.2.190.0060.00914.87
7.2.180.0050.00614.80
7.2.170.0090.00714.69
7.2.160.0080.00914.74
7.2.150.0050.01015.73
7.2.140.0090.00615.71
7.2.130.0090.00915.81
7.2.120.0180.00615.75
7.2.110.0100.00715.64
7.2.100.0110.00515.89
7.2.90.0050.01115.75
7.2.80.0070.00715.68
7.2.70.0070.00815.85
7.2.60.0060.00615.71
7.2.50.0030.01115.60
7.2.40.0120.00415.80
7.2.30.0050.01215.60
7.2.20.0060.00815.98
7.2.10.0060.01115.82
7.2.00.0090.00615.70
7.1.330.0090.00615.76
7.1.320.0060.00614.48
7.1.310.0100.00414.42
7.1.300.0050.00614.63
7.1.290.0050.01114.44
7.1.280.0080.00414.59
7.1.270.0080.00614.48
7.1.260.0080.00414.70
7.1.250.0140.00314.62
7.1.240.0040.00415.51
7.1.230.0080.00415.46
7.1.220.0100.00315.78
7.1.210.0080.00615.61
7.1.200.0060.00615.77
7.1.190.0030.00915.56
7.1.180.0110.00415.73
7.1.170.0030.01015.44
7.1.160.0080.00815.41
7.1.150.0100.00315.32
7.1.140.0090.00315.57
7.1.130.0060.00615.68
7.1.120.0060.00915.56
7.1.110.0040.01115.78
7.1.100.0000.01715.56
7.1.90.0060.00915.47
7.1.80.0030.00715.49
7.1.70.0070.00715.60
7.1.60.0000.01215.67
7.1.50.0140.00415.81
7.1.40.0030.01015.43
7.1.30.0000.01515.57
7.1.20.0050.00515.64
7.1.10.0030.00615.58
7.1.00.0070.00315.52

preferences:
29.16 ms | 403 KiB | 5 Q