3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait SafeAccess { public function __set($name, $value) { throw new \Exception("Property [$name] doesn't exist for class [".get_class($this)."] so can't set it"); } public function __get($name) { throw new \Exception("Property [$name] doesn't exist for class [".get_class($this)."] so can't get it"); } public function __call($name, $arguments) { throw new \Exception("Method [$name] doesn't exist for class."); } } class foo { use SafeAccess; public function __construct() { $this->uwotm8 = true; } } new 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.5.30.0110.00617.63
8.5.20.0110.00620.17
8.5.10.0090.00820.23
8.5.00.0100.01420.11
8.4.180.0150.00819.76
8.4.170.0120.00920.47
8.4.160.0100.01122.22
8.4.150.0050.00716.94
8.4.140.0150.00617.70
8.4.130.0150.00617.98
8.4.120.0050.00322.27
8.4.110.0090.01222.45
8.4.100.0040.00717.73
8.4.90.0050.00420.53
8.4.80.0110.00918.85
8.4.70.0040.00318.76
8.4.60.0130.00618.81
8.4.50.0140.00618.70
8.4.40.0030.01620.63
8.4.30.0060.00917.46
8.4.20.0150.00317.88
8.4.10.0100.01017.99
8.3.300.0110.00920.72
8.3.290.0110.00820.81
8.3.280.0100.01118.49
8.3.270.0110.01116.67
8.3.260.0100.00916.91
8.3.250.0110.00818.97
8.3.240.0070.00816.66
8.3.230.0100.00916.68
8.3.220.0020.00519.24
8.3.210.0130.00718.37
8.3.200.0060.00316.68
8.3.190.0100.00917.36
8.3.180.0080.00918.69
8.3.170.0040.01419.00
8.3.160.0060.00917.13
8.3.150.0110.00717.33
8.3.140.0150.00420.70
8.3.130.0050.00318.70
8.3.120.0080.00018.69
8.3.110.0040.00416.88
8.3.100.0060.00316.63
8.3.90.0050.00518.47
8.3.80.0060.00317.97
8.3.70.0030.01216.75
8.3.60.0070.00716.88
8.3.50.0100.01021.91
8.3.40.0140.00418.97
8.3.30.0070.00718.82
8.3.20.0040.00420.24
8.3.10.0080.00021.77
8.3.00.0040.00420.75
8.2.300.0130.00722.22
8.2.290.0100.00916.61
8.2.280.0140.00718.43
8.2.270.0110.00718.81
8.2.260.0110.00417.03
8.2.250.0050.00316.87
8.2.240.0080.00020.79
8.2.230.0060.00320.94
8.2.220.0090.00024.06
8.2.210.0100.00026.77
8.2.200.0000.00918.66
8.2.190.0150.00018.65
8.2.180.0110.01116.38
8.2.170.0040.01122.96
8.2.160.0090.00619.16
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0080.00022.25
8.2.120.0080.00026.35
8.2.110.0040.00422.13
8.2.100.0090.00317.91
8.2.90.0030.00617.63
8.2.80.0060.00318.73
8.2.70.0030.00618.00
8.2.60.0050.00317.63
8.2.50.0030.00718.10
8.2.40.0000.00820.59
8.2.30.0070.00020.55
8.2.20.0070.00017.69
8.2.10.0030.00618.12
8.2.00.0070.00018.05
8.1.340.0070.00217.80
8.1.330.0110.00716.41
8.1.320.0100.00916.31
8.1.310.0110.00318.39
8.1.300.0030.01217.80
8.1.290.0030.00618.88
8.1.280.0160.00325.92
8.1.270.0040.00423.96
8.1.260.0040.00428.09
8.1.250.0070.00028.09
8.1.240.0030.00623.97
8.1.230.0070.00419.03
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0000.00917.35
8.1.190.0040.00417.23
8.1.180.0080.00018.10
8.1.170.0030.00618.66
8.1.160.0000.00720.77
8.1.150.0000.00818.89
8.1.140.0000.00719.52
8.1.130.0030.00517.72
8.1.120.0070.00017.45
8.1.110.0000.00717.41
8.1.100.0040.00417.49
8.1.90.0060.00317.45
8.1.80.0050.00317.39
8.1.70.0000.00817.50
8.1.60.0050.00217.47
8.1.50.0040.00417.56
8.1.40.0040.00417.54
8.1.30.0080.00017.70
8.1.20.0030.00617.67
8.1.10.0060.00317.40
8.1.00.0030.00517.49
8.0.300.0050.00218.77
8.0.290.0040.00416.63
8.0.280.0070.00018.37
8.0.270.0080.00016.76
8.0.260.0080.00017.25
8.0.250.0000.00717.04
8.0.240.0040.00417.04
8.0.230.0030.00316.92
8.0.220.0080.00016.87
8.0.210.0000.00716.81
8.0.200.0030.00316.90
8.0.190.0040.00417.02
8.0.180.0000.00816.97
8.0.170.0000.00916.91
8.0.160.0030.00316.92
8.0.150.0000.00716.81
8.0.140.0040.00416.91
8.0.130.0030.00313.36
8.0.120.0000.00716.81
8.0.110.0040.00416.95
8.0.100.0030.00516.93
8.0.90.0040.00416.84
8.0.80.0060.00916.95
8.0.70.0000.00816.84
8.0.60.0040.00416.77
8.0.50.0000.00816.77
8.0.30.0030.01617.09
8.0.20.0100.01017.40
8.0.10.0040.00416.95
8.0.00.0080.01016.89
7.4.330.0000.00515.08
7.4.320.0030.00316.44
7.4.300.0030.00316.59
7.4.290.0000.00816.45
7.4.280.0040.00416.53
7.4.270.0000.00716.54
7.4.260.0030.00316.42
7.4.250.0080.00016.55
7.4.240.0000.00716.59
7.4.230.0030.00316.28
7.4.220.0130.00916.45
7.4.210.0090.00616.56
7.4.200.0080.00016.34
7.4.160.0120.00916.41
7.4.150.0140.00417.40
7.4.140.0090.00917.86
7.4.130.0150.00516.49
7.4.120.0120.00716.55
7.4.110.0070.01016.72
7.4.100.0150.00416.52
7.4.90.0130.00316.51
7.4.80.0070.01119.39
7.4.70.0070.01016.61
7.4.60.0070.01016.46
7.4.50.0000.01216.50
7.4.40.0040.01516.71
7.4.30.0120.00316.56
7.4.00.0090.01015.12
7.3.330.0030.00313.26
7.3.320.0030.00313.48
7.3.310.0030.00316.54
7.3.300.0000.00716.29
7.3.290.0000.00616.43
7.3.280.0090.01016.42
7.3.270.0040.01517.40
7.3.260.0180.00616.56
7.3.250.0090.01016.48
7.3.240.0150.00816.52
7.3.230.0150.00316.51
7.3.210.0070.01016.42
7.3.200.0100.00716.68
7.3.190.0000.01716.73
7.3.180.0100.00716.53
7.3.170.0030.02016.41
7.3.160.0120.00316.57
7.3.120.0100.00714.70
7.3.110.0040.01414.80
7.3.100.0110.00014.72
7.3.90.0040.01414.91
7.3.80.0060.00614.89
7.3.70.0110.00615.01
7.3.60.0100.00314.89
7.3.50.0090.00614.94
7.3.40.0060.00914.70
7.3.30.0040.01114.89
7.3.20.0120.00316.56
7.3.10.0000.00916.52
7.3.00.0070.01416.88
7.2.330.0120.00616.57
7.2.320.0120.00616.48
7.2.310.0130.00616.63
7.2.300.0030.01316.29
7.2.290.0060.00916.70
7.2.250.0060.01315.21
7.2.240.0030.01315.18
7.2.230.0100.00314.95
7.2.220.0070.00715.21
7.2.210.0000.01414.72
7.2.200.0040.01415.06
7.2.190.0000.01614.73
7.2.180.0090.00615.02
7.2.170.0150.00014.71
7.2.60.0000.01416.80
7.2.00.0040.01219.50
7.1.330.0040.01115.53
7.1.320.0050.00515.68
7.1.310.0000.01715.65
7.1.300.0030.01015.97
7.1.290.0070.00715.77
7.1.280.0120.00315.63
7.1.270.0090.01215.80
7.1.260.0030.01115.80
7.1.200.0030.01015.66
7.1.100.0030.00718.23
7.1.70.0000.01216.98
7.1.60.0130.01019.48
7.1.50.0110.01116.99
7.1.00.0070.06722.36
7.0.200.0250.00314.89
7.0.60.0100.07721.85
7.0.50.0030.07717.88
7.0.40.0230.05320.22
7.0.30.0130.06020.27
7.0.20.0170.06720.38
7.0.10.0130.06720.34
7.0.00.0230.06020.10
5.6.280.0030.07320.82
5.6.210.0030.08020.77
5.6.200.0170.07718.23
5.6.190.0230.06720.70
5.6.180.0100.06020.63
5.6.170.0130.06720.62
5.6.160.0100.07020.67
5.6.150.0330.05320.43
5.6.140.0200.07720.31
5.6.130.0200.05720.21
5.6.120.0330.06320.41
5.6.110.0370.06720.44
5.6.100.0370.05720.43
5.6.90.0430.05720.38
5.6.80.0470.05019.82
5.6.70.0330.06719.79
5.6.60.0430.06719.81
5.6.50.0530.07019.98
5.6.40.0170.05019.77
5.6.30.0400.07319.95
5.6.20.0430.04719.80
5.6.10.0300.06019.80
5.6.00.0270.06319.65
5.5.350.0170.08320.34
5.5.340.0000.08717.95
5.5.330.0230.05020.24
5.5.320.0130.06020.28
5.5.310.0130.06020.23
5.5.300.0200.06320.25
5.5.290.0270.06320.23
5.5.280.0400.05020.12
5.5.270.0230.07020.12
5.5.260.0470.07020.38
5.5.250.0330.05720.24
5.5.240.0330.08319.49
5.5.230.0300.07019.53
5.5.220.0170.08319.57
5.5.210.0400.05719.54
5.5.200.0400.06019.53
5.5.190.0100.07019.57
5.5.180.0130.07319.51
5.5.160.0170.05019.74
5.5.150.0430.06719.56
5.5.140.0370.05319.57
5.5.130.0270.07019.36
5.5.120.0300.06019.52
5.5.110.0370.05019.45
5.5.100.0330.06019.45
5.5.90.0530.05719.52
5.5.80.0330.05719.46
5.5.70.0330.06019.39
5.5.60.0330.05719.48
5.5.50.0400.06719.45
5.5.40.0430.06019.48
5.5.30.0400.04719.41
5.5.20.0270.06019.53
5.5.10.0070.06719.54
5.5.00.0430.05719.45

preferences:
54.24 ms | 1833 KiB | 5 Q