3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function __construct() { $this->Data = (object) ['name' => 'John']; } public function bar($property) { return $this->{$property}; } } $foo = new Foo(); print $foo->bar('Data');

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.60.0070.00716.63
8.3.50.0090.00618.35
8.3.40.0100.00518.73
8.3.30.0070.00718.79
8.3.20.0040.00420.16
8.3.10.0000.00721.92
8.3.00.0060.00321.59
8.2.180.0070.01418.54
8.2.170.0140.00022.96
8.2.160.0030.01021.96
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0060.00320.66
8.2.120.0040.00426.35
8.2.110.0030.00620.52
8.2.100.0030.00917.93
8.2.90.0000.00818.94
8.2.80.0040.00417.97
8.2.70.0040.00417.50
8.2.60.0000.00818.03
8.2.50.0000.00818.09
8.2.40.0000.00822.14
8.2.30.0040.00419.44
8.2.20.0040.00417.66
8.2.10.0070.00017.99
8.2.00.0040.00418.00
8.1.280.0080.00825.92
8.1.270.0100.00322.09
8.1.260.0120.00028.09
8.1.250.0040.00428.09
8.1.240.0060.00620.70
8.1.230.0060.00617.77
8.1.220.0000.00917.74
8.1.210.0000.00818.77
8.1.200.0030.00617.25
8.1.190.0080.00017.35
8.1.180.0040.00418.10
8.1.170.0000.00918.66
8.1.160.0000.00720.76
8.1.150.0000.00820.59
8.1.140.0000.00919.59
8.1.130.0020.00520.31
8.1.120.0040.00417.35
8.1.110.0000.00717.34
8.1.100.0040.00417.37
8.1.90.0040.00417.39
8.1.80.0070.00017.37
8.1.70.0040.00417.40
8.1.60.0040.00417.64
8.1.50.0060.00317.54
8.1.40.0000.00817.52
8.1.30.0060.00317.57
8.1.20.0030.00517.50
8.1.10.0000.00817.48
8.1.00.0070.00017.38
8.0.300.0030.00518.90
8.0.290.0040.00416.75
8.0.280.0000.00718.43
8.0.270.0070.00017.25
8.0.260.0030.00318.32
8.0.250.0060.00017.00
8.0.240.0030.00317.01
8.0.230.0070.00016.98
8.0.220.0050.00216.87
8.0.210.0040.00416.96
8.0.200.0030.00317.08
8.0.190.0080.00017.03
8.0.180.0000.00817.05
8.0.170.0040.00416.91
8.0.160.0000.00716.88
8.0.150.0050.00216.94
8.0.140.0000.00716.91
8.0.130.0060.00013.40
8.0.120.0040.00416.93
8.0.110.0040.00416.88
8.0.100.0080.00016.84
8.0.90.0030.00516.74
8.0.80.0040.01216.91
8.0.70.0000.00816.99
8.0.60.0030.00516.86
8.0.50.0070.00016.90
8.0.30.0170.00417.14
8.0.20.0120.00817.41
8.0.10.0000.00717.04
8.0.00.0120.00716.72
7.4.330.0000.00516.70
7.4.320.0030.00316.50
7.4.300.0020.00516.52
7.4.290.0070.00016.51
7.4.280.0040.00416.49
7.4.270.0030.00316.41
7.4.260.0030.00716.46
7.4.250.0040.00416.43
7.4.240.0040.00416.65
7.4.230.0000.00716.49
7.4.220.0110.00716.69
7.4.210.0090.00916.54
7.4.200.0000.00716.61
7.4.160.0070.00716.68
7.4.150.0200.00417.40
7.4.140.0120.00817.86
7.4.130.0160.00716.63
7.4.120.0140.00516.55
7.4.110.0120.00816.42
7.4.100.0070.01016.53
7.4.90.0130.01016.45
7.4.80.0090.00919.39
7.4.70.0030.01616.67
7.4.60.0040.01516.41
7.4.50.0070.00616.34
7.4.40.0110.00716.34
7.4.30.0140.00316.43
7.4.00.0030.01315.16
7.3.330.0000.00613.43
7.3.320.0000.00513.30
7.3.310.0030.00316.43
7.3.300.0030.00316.38
7.3.290.0000.00716.52
7.3.280.0070.01316.38
7.3.270.0150.00317.40
7.3.260.0060.01316.35
7.3.250.0100.00716.53
7.3.240.0100.00716.38
7.3.230.0110.00716.39
7.3.210.0000.01816.69
7.3.200.0100.01019.39
7.3.190.0070.00716.50
7.3.180.0100.00716.56
7.3.170.0090.01216.63
7.3.160.0060.00916.45
7.3.10.0060.00916.88
7.3.00.0060.00616.75
7.2.330.0060.01016.77
7.2.320.0060.01616.81
7.2.310.0060.00916.63
7.2.300.0030.01316.68
7.2.290.0170.00616.39
7.2.130.0000.01216.96
7.2.120.0000.01717.03
7.2.110.0100.00616.55
7.2.100.0060.00616.93
7.2.90.0060.00316.96
7.2.80.0030.00717.06
7.2.70.0060.00616.97
7.2.60.0080.00816.88
7.2.50.0030.00916.94
7.2.40.0080.00416.88
7.2.30.0100.00316.73
7.2.20.0100.00317.03
7.2.10.0030.00917.00
7.2.00.0080.00917.90
7.1.250.0030.01015.82
7.1.200.0070.00715.69
7.1.100.0070.01418.08
7.1.70.0000.00817.29
7.1.60.0180.00419.40
7.1.50.0080.00416.90
7.1.00.0030.07722.48
7.0.200.0000.00716.69
7.0.60.0030.04321.84
7.0.50.0100.05317.84
7.0.40.0100.04020.14
7.0.30.0300.07320.19
7.0.20.0270.08020.10
7.0.10.0070.04720.16
7.0.00.0100.08020.10
5.6.280.0000.03721.11
5.6.210.0100.06720.68
5.6.200.0430.03018.25
5.6.190.0130.04720.73
5.6.180.0300.06320.48
5.6.170.0300.04020.56
5.6.160.0030.04020.46
5.6.150.0030.08018.19
5.6.140.0000.04318.21
5.6.130.0030.05018.28
5.6.120.0070.06320.99
5.6.110.0070.08020.96
5.6.100.0130.07721.01
5.6.90.0070.04020.97
5.6.80.0070.05720.38
5.5.350.0300.07020.50
5.5.340.0130.06017.98
5.5.330.0030.08720.40
5.5.320.0230.03720.50
5.5.310.0230.08020.24
5.5.300.0100.06317.92
5.5.290.0030.08317.93
5.5.280.0100.08020.80
5.5.270.0100.07320.77
5.5.260.0100.08020.65
5.5.250.0000.08020.70
5.5.240.0170.04020.27

preferences:
54.45 ms | 401 KiB | 5 Q