3v4l.org

run code in 300+ PHP versions simultaneously
<?phpclass Person { private $name; private $age; function __construct($name, $age) { $this->name=$name; $this->age=$age; } function say() { echo "我的名字叫:".$this->name."<br />"; echo "我的年龄是:".$this->age; }}$p1 = new Person("张三", 20);$p2 = clone $p1;$p2->say();?>

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.0100.00318.18
8.3.50.0190.00316.12
8.3.40.0070.00718.59
8.3.30.0030.01018.82
8.3.20.0050.00220.16
8.3.10.0070.00022.04
8.3.00.0040.00422.27
8.2.180.0090.00616.38
8.2.170.0150.00022.96
8.2.160.0110.00419.08
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0100.00726.16
8.2.120.0000.00819.24
8.2.110.0000.01021.97
8.2.100.0080.00417.78
8.2.90.0050.00317.78
8.2.80.0080.00017.97
8.2.70.0000.00917.63
8.2.60.0060.00318.04
8.2.50.0000.00818.07
8.2.40.0040.00418.13
8.2.30.0040.00417.95
8.2.20.0040.00417.55
8.2.10.0050.00217.42
8.2.00.0020.00517.41
8.1.270.0060.00322.20
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0040.00422.34
8.1.230.0040.00720.90
8.1.220.0030.00717.74
8.1.210.0040.00418.82
8.1.200.0030.01017.21
8.1.190.0000.00817.16
8.1.180.0060.00320.23
8.1.170.0080.00018.71
8.1.160.0040.00422.13
8.1.150.0070.00018.43
8.1.140.0040.00417.30
8.1.130.0000.00817.75
8.1.120.0050.00217.22
8.1.110.0000.00917.30
8.1.100.0000.00717.29
8.1.90.0070.00017.23
8.1.80.0000.00817.22
8.1.70.0000.00717.28
8.1.60.0060.00317.43
8.1.50.0000.00717.38
8.1.40.0050.00317.40
8.1.30.0000.00717.45
8.1.20.0080.00017.44
8.1.10.0040.00417.43
8.1.00.0000.00717.31
8.0.300.0000.00719.87
8.0.290.0000.00716.93
8.0.280.0000.00718.29
8.0.270.0000.00817.05
8.0.260.0000.00716.75
8.0.250.0000.00616.80
8.0.240.0000.00716.77
8.0.230.0000.00716.77
8.0.220.0000.00816.66
8.0.210.0000.00716.71
8.0.200.0000.00616.77
8.0.190.0070.00016.68
8.0.180.0000.00716.78
8.0.170.0000.00716.68
8.0.160.0040.00416.68
8.0.150.0030.00316.75
8.0.140.0000.00716.67
8.0.130.0030.00313.42
8.0.120.0080.00016.71
8.0.110.0040.00416.73
8.0.100.0040.00416.57
8.0.90.0000.00816.84
8.0.80.0060.00916.74
8.0.70.0070.00016.86
8.0.60.0070.00016.60
8.0.50.0000.00816.77
8.0.30.0080.01316.94
8.0.20.0120.00717.40
8.0.10.0070.00016.86
8.0.00.0090.01016.66
7.4.330.0020.00215.01
7.4.320.0060.00016.46
7.4.300.0030.00316.43
7.4.290.0080.00016.46
7.4.280.0030.00316.27
7.4.270.0000.00716.22
7.4.260.0030.00316.44
7.4.250.0070.00016.37
7.4.240.0020.00516.37
7.4.230.0030.00316.36
7.4.220.0070.01016.48
7.4.210.0040.01016.47
7.4.200.0050.00316.29
7.4.190.0030.00316.35
7.4.160.0040.01116.28
7.4.150.0090.00917.40
7.4.140.0100.00817.86
7.4.130.0100.00616.34
7.4.120.0050.01416.39
7.4.110.0040.01416.40
7.4.100.0070.01016.28
7.4.90.0120.00416.34
7.4.80.0100.01319.39
7.4.70.0060.01016.38
7.4.60.0100.00716.44
7.4.50.0040.00416.25
7.4.40.0080.00322.77
7.4.30.0030.01216.18
7.3.330.0050.00013.13
7.3.320.0000.00513.28
7.3.310.0000.00716.19
7.3.300.0040.00416.16
7.3.290.0050.00916.18
7.3.280.0050.01116.12
7.3.270.0080.00817.40
7.3.260.0080.00916.39
7.3.250.0120.00816.22
7.3.240.0070.01016.13
7.3.230.0110.01116.39
7.3.210.0060.01216.20
7.3.200.0060.01016.29
7.3.190.0040.01816.11
7.3.180.0050.01016.14
7.3.170.0130.01016.30
7.3.160.0100.00716.45
7.2.330.0130.01016.54
7.2.320.0100.01316.59
7.2.310.0100.01016.50
7.2.300.0070.01116.28
7.2.290.0100.01016.29
5.4.320.0080.03412.45
5.4.310.0030.04412.45
5.4.300.0090.03612.45
5.4.290.0080.03512.45
5.4.280.0090.03512.34
5.4.270.0040.04012.35
5.4.260.0030.06018.75
5.4.250.0100.05318.97
5.4.240.0070.05318.93
5.4.230.0130.04719.09
5.4.220.0030.05719.02
5.4.210.0070.05318.75
5.4.200.0130.05719.03
5.4.190.0230.05018.95
5.4.180.0070.07719.03
5.4.170.0170.06318.91
5.4.160.0130.04718.95
5.4.150.0130.07718.93
5.4.140.0100.05016.48
5.4.130.0130.04316.31
5.4.120.0100.05016.34
5.4.110.0230.06016.42
5.4.100.0130.04316.51
5.4.90.0070.05016.56
5.4.80.0100.04716.31
5.4.70.0070.05316.44
5.4.60.0100.07016.46
5.4.50.0230.05016.54
5.4.40.0100.06316.51
5.4.30.0000.05716.35
5.4.20.0070.05016.26
5.4.10.0130.04716.35
5.4.00.0070.05315.96
5.3.290.0080.03712.80
5.3.280.0100.07014.59
5.3.270.0070.06714.46
5.3.260.0030.07714.64
5.3.250.0070.05314.60
5.3.240.0030.06714.52
5.3.230.0170.06314.61
5.3.220.0100.05314.42
5.3.210.0100.05714.65
5.3.200.0070.05714.41
5.3.190.0100.04714.55
5.3.180.0070.05314.50
5.3.170.0130.06714.44
5.3.160.0130.04314.65
5.3.150.0170.06714.26
5.3.140.0000.08014.54
5.3.130.0100.04714.32
5.3.120.0070.05314.31
5.3.110.0030.06014.55
5.3.100.0070.05014.12
5.3.90.0200.04013.86
5.3.80.0170.04013.85
5.3.70.0100.05013.93
5.3.60.0070.05013.85
5.3.50.0070.05013.94
5.3.40.0030.05313.95
5.3.30.0070.05013.99
5.3.20.0070.05013.78
5.3.10.0100.04313.59
5.3.00.0070.05013.51

preferences:
51.8 ms | 400 KiB | 5 Q