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($user->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.0080.00816.88
8.3.50.0100.00821.21
8.3.40.0100.00718.75
8.3.30.0070.00718.66
8.3.20.0040.00420.39
8.3.10.0020.00521.68
8.3.00.0000.00822.34
8.2.180.0110.01118.36
8.2.170.0090.00622.96
8.2.160.0100.01020.39
8.2.150.0080.00024.18
8.2.140.0050.00224.66
8.2.130.0080.00026.16
8.2.120.0060.00317.25
8.2.110.0040.00422.17
8.2.100.0060.00617.63
8.2.90.0040.00419.08
8.2.80.0050.00317.97
8.2.70.0090.00017.63
8.2.60.0000.00817.80
8.2.50.0060.00618.07
8.2.40.0030.00521.02
8.2.30.0040.00419.78
8.2.20.0050.00217.61
8.2.10.0000.00717.97
8.2.00.0000.00817.98
8.1.280.0090.00625.92
8.1.270.0120.00620.33
8.1.260.0030.00526.35
8.1.250.0040.00428.09
8.1.240.0090.00022.34
8.1.230.0000.01117.42
8.1.220.0050.00517.74
8.1.210.0000.00818.77
8.1.200.0030.00617.23
8.1.190.0060.00317.11
8.1.180.0070.00018.10
8.1.170.0050.00318.58
8.1.160.0030.00621.95
8.1.150.0040.00418.79
8.1.140.0000.00817.20
8.1.130.0000.00717.48
8.1.120.0030.00717.38
8.1.110.0050.00317.36
8.1.100.0070.00017.34
8.1.90.0050.00217.23
8.1.80.0030.00317.34
8.1.70.0000.00717.32
8.1.60.0040.00417.51
8.1.50.0040.00417.36
8.1.40.0030.00617.42
8.1.30.0030.00517.59
8.1.20.0040.00417.54
8.1.10.0080.00017.48
8.1.00.0040.00417.32
8.0.300.0000.00718.77
8.0.290.0070.00016.75
8.0.280.0000.00718.24
8.0.270.0060.00317.23
8.0.260.0030.00317.17
8.0.250.0020.00516.95
8.0.240.0070.00016.96
8.0.230.0040.00416.89
8.0.220.0000.00716.86
8.0.210.0000.00716.83
8.0.200.0000.00716.86
8.0.190.0030.00516.93
8.0.180.0040.00416.82
8.0.170.0000.00716.85
8.0.160.0070.00016.73
8.0.150.0000.00716.80
8.0.140.0070.00016.84
8.0.130.0030.00313.27
8.0.120.0060.00316.85
8.0.110.0040.00416.95
8.0.100.0000.00716.90
8.0.90.0000.00716.71
8.0.80.0070.01116.91
8.0.70.0020.00516.69
8.0.60.0030.00416.69
8.0.50.0000.00716.99
8.0.30.0100.00817.11
8.0.20.0090.00917.40
8.0.10.0030.00516.81
8.0.00.0080.01116.55
7.4.330.0060.00015.08
7.4.320.0060.00016.38
7.4.300.0060.00016.44
7.4.290.0030.00316.52
7.4.280.0000.00716.53
7.4.270.0030.00316.44
7.4.260.0000.00816.42
7.4.250.0000.00716.54
7.4.240.0000.00716.44
7.4.230.0040.00416.25
7.4.220.0130.00916.52
7.4.210.0080.00916.51
7.4.200.0030.00316.50
7.4.160.0030.01216.50
7.4.150.0180.00017.40
7.4.140.0110.00817.86
7.4.130.0110.00716.61
7.4.120.0040.01616.48
7.4.110.0070.01016.30
7.4.100.0120.00616.52
7.4.90.0090.00916.56
7.4.80.0070.01119.39
7.4.70.0070.01316.44
7.4.60.0160.00316.41
7.4.50.0060.00316.21
7.4.40.0100.00616.29
7.4.30.0090.00916.46
7.4.00.0050.01214.87
7.3.330.0000.00513.21
7.3.320.0000.00513.43
7.3.310.0070.00016.34
7.3.300.0060.00016.25
7.3.290.0030.00316.40
7.3.280.0130.00816.31
7.3.270.0120.00617.40
7.3.260.0070.01016.39
7.3.250.0090.00716.46
7.3.240.0100.00616.49
7.3.230.0110.01116.39
7.3.210.0100.00716.33
7.3.200.0100.00719.39
7.3.190.0080.01116.35
7.3.180.0090.00616.60
7.3.170.0140.00616.35
7.3.160.0150.00316.28
7.3.120.0140.00414.80
7.3.110.0130.00614.70
7.3.100.0090.00614.81
7.3.90.0070.00314.82
7.3.80.0030.00914.79
7.3.70.0030.00914.86
7.3.60.0110.00414.87
7.3.50.0060.00614.41
7.3.40.0030.01014.88
7.3.30.0040.00414.61
7.3.20.0000.01316.75
7.3.10.0070.00716.43
7.3.00.0100.00716.34
7.2.330.0150.00616.57
7.2.320.0080.00816.53
7.2.310.0130.00516.41
7.2.300.0160.00416.32
7.2.290.0130.01016.42
7.2.250.0070.01114.99
7.2.240.0040.01214.99
7.2.230.0090.00614.75
7.2.220.0000.01314.94
7.2.210.0030.01314.77
7.2.200.0040.00814.68
7.2.190.0060.00914.91
7.2.180.0040.00814.96
7.2.170.0030.00714.96
7.2.60.0110.00416.75
7.2.00.0040.00819.32
7.1.330.0060.00615.53
7.1.320.0030.01115.71
7.1.310.0090.00615.54
7.1.300.0030.00615.67
7.1.290.0050.00315.48
7.1.280.0000.00815.61
7.1.270.0040.00715.54
7.1.260.0080.00315.52
7.1.200.0060.00615.69
7.1.100.0040.00717.80
7.1.70.0070.01016.96
7.1.60.0090.01620.03
7.1.50.0070.01516.82
7.1.00.0000.07722.36
7.0.200.0520.00414.97
7.0.60.0130.08019.85
7.0.50.0070.04317.86
7.0.40.0130.08320.14
7.0.30.0270.04720.06
7.0.20.0200.04720.07
7.0.10.0270.08720.12
7.0.00.0070.08320.07
5.6.280.0100.05321.03
5.6.210.0100.08020.61
5.6.200.0100.07718.12
5.6.190.0100.06720.60
5.6.180.0170.06020.77
5.6.170.0200.08720.48
5.6.160.0130.07720.55
5.6.150.0100.07718.16
5.6.140.0070.05318.12
5.6.130.0100.08018.16
5.6.120.0070.05321.03
5.6.110.0100.03720.96
5.6.100.0170.07321.12
5.6.90.0070.08321.11
5.6.80.0070.06720.39
5.6.70.0170.04020.37
5.5.350.0030.08320.43
5.5.340.0100.07317.97
5.5.330.0030.04720.40
5.5.320.0000.04720.24
5.5.310.0300.05020.19
5.5.300.0100.05018.05
5.5.290.0000.08717.96
5.5.280.0100.07320.97
5.5.270.0070.04720.88
5.5.260.0000.04320.96
5.5.250.0100.05720.69
5.5.240.0000.06720.17
5.4.450.0730.06319.45
5.4.440.1030.06019.61
5.4.430.1070.06019.33
5.4.420.0870.05319.34
5.4.410.0930.06019.36
5.4.400.0130.06019.26
5.4.390.0170.05019.26
5.4.380.0330.05719.28
5.4.370.0930.05319.02
5.4.360.0870.06719.22
5.4.350.0800.06719.12
5.4.340.0870.05719.25
5.4.320.0670.06019.14
5.4.310.0930.04319.26
5.4.300.1030.05319.14
5.4.290.0830.05019.14
5.4.280.0900.05019.01
5.4.270.0900.05019.28
5.4.260.0730.06719.17
5.4.250.0730.05019.00
5.4.240.1000.06319.16
5.4.230.0370.07719.30
5.4.220.0200.05319.25
5.4.210.0200.05018.97
5.4.200.0530.05316.69
5.4.190.0800.05018.93
5.4.180.0870.05718.98
5.4.170.0830.05719.23
5.4.160.0770.05318.83
5.4.150.0800.05318.95
5.4.140.0870.05016.42
5.4.130.0830.04716.47
5.4.120.0770.04716.51
5.4.110.0800.04716.50
5.4.100.0900.05316.51
5.4.90.0670.05316.36
5.4.80.0700.06716.46
5.4.70.0930.06716.46
5.4.60.0070.07016.54
5.4.50.0070.07316.34
5.4.40.0100.04016.38
5.4.30.0230.04316.51
5.4.20.0270.05316.33
5.4.10.0270.06716.51

preferences:
51.21 ms | 401 KiB | 5 Q