3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Person { public $name; public function __construct($name) { $this->name($name); } public function name($name) { return $this>name($name); } } $user = new Person; var_dump($person->name('chris'));

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.0090.00916.75
8.3.50.0080.00921.00
8.3.40.0120.00318.79
8.3.30.0150.00018.84
8.3.20.0090.00620.21
8.3.10.0040.00421.64
8.3.00.0000.00822.51
8.2.180.0110.01116.63
8.2.170.0070.01422.96
8.2.160.0150.00620.26
8.2.150.0000.00825.66
8.2.140.0040.00424.66
8.2.130.0020.00526.16
8.2.120.0050.00517.25
8.2.110.0000.00920.41
8.2.100.0060.00617.63
8.2.90.0040.00419.14
8.2.80.0000.00817.97
8.2.70.0000.00917.38
8.2.60.0050.00317.80
8.2.50.0000.00918.07
8.2.40.0040.00421.01
8.2.30.0050.00319.76
8.2.20.0030.00517.68
8.2.10.0050.00318.06
8.2.00.0000.00717.98
8.1.280.0100.00725.92
8.1.270.0040.00420.46
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0000.01023.92
8.1.230.0060.00617.42
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0060.00317.25
8.1.190.0040.00417.22
8.1.180.0050.00318.10
8.1.170.0080.00018.61
8.1.160.0030.00621.82
8.1.150.0040.00418.75
8.1.140.0040.00417.30
8.1.130.0000.00717.53
8.1.120.0030.00617.32
8.1.110.0070.00017.22
8.1.100.0050.00217.23
8.1.90.0030.00417.36
8.1.80.0000.00817.38
8.1.70.0000.00717.38
8.1.60.0040.00417.40
8.1.50.0000.00817.45
8.1.40.0070.00017.44
8.1.30.0060.00317.64
8.1.20.0040.00417.61
8.1.10.0040.00417.49
8.1.00.0000.00717.33
8.0.300.0000.00818.77
8.0.290.0000.00716.63
8.0.280.0030.00318.24
8.0.270.0000.00917.14
8.0.260.0040.00417.11
8.0.250.0070.00016.93
8.0.240.0040.00416.86
8.0.230.0000.00816.91
8.0.220.0000.00716.88
8.0.210.0000.00716.88
8.0.200.0070.00016.84
8.0.190.0030.00616.94
8.0.180.0040.00416.93
8.0.170.0050.00216.91
8.0.160.0070.00016.78
8.0.150.0040.00416.90
8.0.140.0000.00816.76
8.0.130.0000.00613.38
8.0.120.0050.00316.86
8.0.110.0050.00316.86
8.0.100.0000.00716.87
8.0.90.0000.00716.83
8.0.80.0090.00616.87
8.0.70.0070.00016.76
8.0.60.0040.00416.72
8.0.50.0040.00416.80
8.0.30.0140.00617.13
8.0.20.0160.00617.40
8.0.10.0050.00216.99
8.0.00.0090.01016.77
7.4.330.0020.00215.08
7.4.320.0030.00316.32
7.4.300.0000.00616.50
7.4.290.0040.00416.48
7.4.280.0000.00716.36
7.4.270.0000.00616.50
7.4.260.0070.00016.42
7.4.250.0040.00416.47
7.4.240.0030.00416.50
7.4.230.0070.00016.54
7.4.220.0100.00916.46
7.4.210.0060.01116.53
7.4.200.0070.00016.47
7.4.160.0120.00316.58
7.4.150.0110.00717.40
7.4.140.0140.01317.86
7.4.130.0060.01116.46
7.4.120.0120.00816.56
7.4.110.0060.01016.21
7.4.100.0130.00916.50
7.4.90.0120.00616.24
7.4.80.0190.00319.39
7.4.70.0080.01116.37
7.4.60.0130.00716.59
7.4.50.0000.00816.20
7.4.40.0100.00616.30
7.4.30.0070.01416.52
7.4.00.0110.00315.04
7.3.330.0000.00513.35
7.3.320.0060.00013.31
7.3.310.0070.00016.26
7.3.300.0000.00716.40
7.3.290.0030.00316.24
7.3.280.0110.00716.34
7.3.270.0090.00917.40
7.3.260.0140.00316.25
7.3.250.0070.01016.27
7.3.240.0100.00616.35
7.3.230.0070.01416.39
7.3.210.0120.00316.35
7.3.200.0130.01019.39
7.3.190.0100.00616.42
7.3.180.0080.00916.35
7.3.170.0030.01216.41
7.3.160.0070.01016.29
7.3.10.0050.00516.34
7.3.00.0050.00516.53
7.2.330.0070.01116.58
7.2.320.0160.00616.60
7.2.310.0110.01116.50
7.2.300.0070.01116.27
7.2.290.0110.01116.32
7.2.130.0030.01016.77
7.2.120.0030.00916.74
7.2.110.0030.00716.87
7.2.100.0000.01216.82
7.2.90.0030.01016.97
7.2.80.0000.01416.74
7.2.70.0100.00316.83
7.2.60.0070.00316.81
7.2.50.0030.00916.90
7.2.40.0040.00816.62
7.2.30.0000.01516.82
7.2.20.0030.00616.82
7.2.10.0040.01416.82
7.2.00.0030.01016.84
7.1.250.0040.00815.71
7.1.200.0060.00615.52
7.1.70.0000.01417.10
7.1.60.0040.02120.03
7.1.50.0070.00416.79
7.1.00.0000.07722.46
7.0.200.0270.00714.97
7.0.60.0030.04319.79
7.0.50.0070.08317.86
7.0.40.0070.07020.04
7.0.30.0130.05020.21
7.0.20.0270.03320.17
7.0.10.0070.04020.07
7.0.00.0100.03720.09
5.6.280.0030.06721.14
5.6.210.0130.05020.63
5.6.200.0100.06018.13
5.6.190.0100.03720.63
5.6.180.0270.05320.66
5.6.170.0130.05320.48
5.6.160.0030.05720.48
5.6.150.0100.07718.23
5.6.140.0000.09018.28
5.6.130.0100.07718.23
5.6.120.0030.04721.02
5.6.110.0030.07021.13
5.6.100.0100.07020.99
5.6.90.0130.06021.11
5.6.80.0170.06720.51
5.5.350.0030.07020.34
5.5.340.0100.08018.09
5.5.330.0070.07320.55
5.5.320.0070.08020.23
5.5.310.0430.06720.30
5.5.300.0070.04717.95
5.5.290.0170.05317.97
5.5.280.0000.06020.96
5.5.270.0100.08020.82
5.5.260.0130.06320.88
5.5.250.0070.03720.59
5.5.240.0070.06020.29
5.4.450.0200.05719.31
5.4.440.0270.06319.38
5.4.430.0430.05319.55
5.4.420.0170.07319.61
5.4.410.0330.03719.04
5.4.400.0200.05019.14
5.4.390.0300.04718.80
5.4.380.0130.05319.29
5.4.370.0200.05319.12
5.4.360.0370.03719.09
5.4.350.0170.06019.23
5.4.340.0200.05319.30
5.4.320.0130.06019.01
5.4.310.0370.05019.30
5.4.300.0300.05018.86
5.4.290.0270.05719.28
5.4.280.0370.05719.06
5.4.270.0200.06719.25
5.4.260.0230.06018.84
5.4.250.0200.06019.05
5.4.240.0170.05019.14
5.4.230.0230.06719.05
5.4.220.0130.09018.97
5.4.210.0170.06019.04
5.4.200.0230.06316.80
5.4.190.0300.04718.93
5.4.180.0230.06319.04
5.4.170.0270.04719.30
5.4.160.0230.04719.20
5.4.150.0170.05719.08
5.4.140.0230.06316.48
5.4.130.0170.05316.52
5.4.120.0130.06016.49
5.4.110.0230.04016.46
5.4.100.0300.05716.26
5.4.90.0230.06016.42
5.4.80.0170.05316.43
5.4.70.0200.05716.49
5.4.60.0200.07716.52
5.4.50.0030.07316.23
5.4.40.0300.06316.43
5.4.30.0100.05016.32
5.4.20.0300.07316.22
5.4.10.0330.04016.38

preferences:
68.72 ms | 401 KiB | 5 Q