3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Person { /** * @var string */ public $name; /** * @param string */ public function __construct($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } } $person = new Person(1000); var_dump($person); $anotherPerson = new Person($person); var_dump($anotherPerson);

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.0150.00416.50
8.3.50.0070.00718.27
8.3.40.0110.00318.60
8.3.30.0110.00418.55
8.3.20.0040.00424.18
8.3.10.0050.00324.66
8.3.00.0090.00026.16
8.2.180.0130.00725.92
8.2.170.0090.00618.70
8.2.160.0030.01022.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0080.00020.77
8.2.110.0080.00321.02
8.2.100.0000.01217.78
8.2.90.0000.00817.84
8.2.80.0040.00418.96
8.2.70.0060.00317.25
8.2.60.0040.00417.80
8.2.50.0000.00817.50
8.2.40.0080.00019.35
8.2.30.0070.00018.09
8.2.20.0000.00718.04
8.2.10.0000.00719.25
8.2.00.0080.00019.18
8.1.280.0100.01025.92
8.1.270.0040.00423.99
8.1.260.0070.00026.35
8.1.250.0050.00328.09
8.1.240.0100.00719.31
8.1.230.0080.00423.88
8.1.220.0000.00817.74
8.1.210.0000.00818.88
8.1.200.0060.00317.35
8.1.190.0040.00417.36
8.1.180.0030.00618.10
8.1.170.0080.00017.62
8.1.160.0050.00318.79
8.1.150.0040.00418.84
8.1.140.0030.00520.53
8.1.130.0030.00320.07
8.1.120.0000.00717.40
8.1.110.0000.00817.28
8.1.100.0000.00717.33
8.1.90.0000.00717.33
8.1.80.0050.00317.37
8.1.70.0050.00317.34
8.1.60.0000.00717.49
8.1.50.0030.00517.48
8.1.40.0050.00317.37
8.1.30.0000.00817.67
8.1.20.0000.00917.54
8.1.10.0020.00517.49
8.1.00.0040.00417.47
8.0.300.0000.00819.95
8.0.290.0060.00216.63
8.0.280.0030.00318.38
8.0.270.0030.00317.94
8.0.260.0060.00018.28
8.0.250.0070.00016.92
8.0.240.0000.00716.90
8.0.230.0030.00316.88
8.0.220.0040.00416.88
8.0.210.0010.00616.81
8.0.200.0070.00016.82
8.0.190.0050.00316.86
8.0.180.0040.00416.74
8.0.170.0040.00416.86
8.0.160.0040.00416.83
8.0.150.0000.00716.75
8.0.140.0070.00316.76
8.0.130.0000.00613.29
8.0.120.0000.00816.87
8.0.110.0040.00416.76
8.0.100.0040.00416.71
8.0.90.0050.00316.65
8.0.80.0110.00716.79
8.0.70.0050.00316.77
8.0.60.0000.00716.61
8.0.50.0040.00416.86
8.0.30.0120.00616.73
8.0.20.0120.00617.06
8.0.10.0120.00617.03
8.0.00.0110.00717.04
7.4.330.0000.00515.55
7.4.320.0030.00316.51
7.4.300.0040.00616.54
7.4.290.0000.00716.50
7.4.280.0000.00816.63
7.4.270.0030.00416.52
7.4.260.0030.00313.20
7.4.250.0040.00416.44
7.4.240.0000.00716.59
7.4.230.0050.00216.60
7.4.220.0070.00016.59
7.4.210.0100.00416.63
7.4.200.0030.00316.64
7.4.150.0300.01216.39
7.4.140.0150.00416.25
7.4.130.0090.00916.50
7.4.120.0080.01116.45
7.4.110.0070.01316.17
7.4.100.0350.01016.20
7.4.90.0140.00916.40
7.4.80.0090.01216.51
7.4.70.0130.00416.54
7.4.60.0070.01116.34
7.4.50.0150.00316.47
7.4.40.0090.00916.51
7.4.30.0110.00716.32
7.4.20.0110.00716.16
7.4.10.0130.00716.34
7.4.00.0170.00316.28
7.3.330.0030.00516.26
7.3.320.0030.00313.06
7.3.310.0030.00316.13
7.3.300.0070.00016.10
7.3.290.0000.00716.10
7.3.270.0100.00716.48
7.3.260.0080.01016.39
7.3.250.0150.00416.20
7.3.240.0110.00816.20
7.3.230.0090.01216.12
7.3.220.0090.00916.21
7.3.210.0160.00416.23
7.3.200.0130.01316.35
7.3.190.0110.00816.12
7.3.180.0070.01016.26
7.3.170.0110.00816.16
7.3.160.0100.00716.54
7.3.150.0060.01216.24
7.3.140.0120.01216.14
7.3.130.0170.00716.26
7.3.120.0080.01116.45
7.3.110.0120.00616.49
7.3.100.0150.00916.36
7.3.90.0090.01316.21
7.3.80.0090.00916.15
7.3.70.0090.00916.37
7.3.60.0130.00416.26
7.3.50.0190.00316.21
7.3.40.0050.01416.27
7.3.30.0210.00516.19
7.3.20.0150.01116.20
7.3.10.0120.00616.35
7.3.00.0040.01616.27

preferences:
31.23 ms | 400 KiB | 5 Q