3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Person{ protected $name; public function __construct (string $name = null){ $this->setName($name); } public function setName(string $name){ $this->name = $name; } public function saySomething(){ echo $this->name . ' says something!'; } } $me = new Person("Konrad"); $me->saySomething();

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.00618.56
8.3.50.0070.00716.48
8.3.40.0070.01018.85
8.3.30.0110.00318.70
8.3.20.0040.00421.73
8.3.10.0040.00423.46
8.3.00.0040.00420.90
8.2.180.0110.01418.54
8.2.170.0090.00622.96
8.2.160.0080.00622.26
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0000.00820.92
8.2.110.0060.00321.00
8.2.100.0090.00317.84
8.2.90.0030.00619.26
8.2.80.0040.00417.97
8.2.70.0080.00018.04
8.2.60.0040.00418.16
8.2.50.0030.00618.10
8.2.40.0000.00821.07
8.2.30.0000.00819.11
8.2.20.0050.00217.94
8.2.10.0080.00019.11
8.2.00.0040.00419.25
8.1.280.0000.01425.92
8.1.270.0000.00918.83
8.1.260.0080.00026.35
8.1.250.0110.00428.09
8.1.240.0040.00423.78
8.1.230.0040.00822.75
8.1.220.0000.00817.78
8.1.210.0090.00318.77
8.1.200.0060.00317.48
8.1.190.0000.00817.35
8.1.180.0040.00418.10
8.1.170.0040.00418.57
8.1.160.0000.00818.88
8.1.150.0050.00318.83
8.1.140.0000.00822.14
8.1.130.0000.00720.14
8.1.120.0030.00417.45
8.1.110.0050.00217.46
8.1.100.0070.00017.52
8.1.90.0090.00017.49
8.1.80.0060.00317.44
8.1.70.0000.00717.48
8.1.60.0000.00917.55
8.1.50.0000.00717.58
8.1.40.0030.00517.48
8.1.30.0040.00417.66
8.1.20.0000.00717.62
8.1.10.0000.00817.52
8.1.00.0040.00417.50
8.0.300.0040.00419.56
8.0.290.0030.00616.63
8.0.280.0030.00318.31
8.0.270.0000.00717.25
8.0.260.0060.00318.44
8.0.250.0030.00616.96
8.0.240.0070.00016.82
8.0.230.0050.00216.90
8.0.220.0000.00816.75
8.0.210.0000.00716.90
8.0.200.0030.00316.84
8.0.190.0000.00816.88
8.0.180.0050.00316.91
8.0.170.0050.00316.92
8.0.160.0100.00016.91
8.0.150.0040.00416.88
8.0.140.0040.00416.81
8.0.130.0000.00613.28
8.0.120.0040.00416.95
8.0.110.0040.00416.93
8.0.100.0020.00516.88
8.0.90.0040.00416.96
8.0.80.0070.00716.86
8.0.70.0040.00416.82
8.0.60.0040.00416.84
8.0.50.0000.00716.70
8.0.30.0120.00617.18
8.0.20.0140.00317.40
8.0.10.0030.00516.74
8.0.00.0100.01316.81
7.4.330.0050.00015.55
7.4.320.0000.00716.35
7.4.300.0030.00316.59
7.4.290.0040.00416.50
7.4.280.0020.00516.52
7.4.270.0040.00416.63
7.4.260.0080.00016.58
7.4.250.0000.00716.39
7.4.240.0070.00016.50
7.4.230.0070.00016.25
7.4.220.0030.00616.63
7.4.210.0080.00616.58
7.4.200.0070.00016.41
7.4.160.0050.01116.42
7.4.140.0130.00617.86
7.4.130.0060.01216.57
7.4.120.0040.01516.59
7.4.110.0070.01016.48
7.4.100.0130.00616.57
7.4.90.0060.00916.52
7.4.80.0130.00319.39
7.4.70.0160.00316.46
7.4.60.0110.01016.46
7.4.50.0000.01216.45
7.4.40.0160.00616.63
7.4.00.0050.00814.88
7.3.330.0000.00513.32
7.3.320.0000.00613.09
7.3.310.0000.00716.41
7.3.300.0000.00716.19
7.3.290.0080.00016.22
7.3.280.0020.01416.30
7.3.260.0110.00716.44
7.3.240.0090.00916.44
7.3.230.0130.00816.39
7.3.210.0120.00916.34
7.3.200.0110.00616.40
7.3.190.0080.01516.21
7.3.180.0060.00916.23
7.3.170.0070.01416.42
7.3.160.0060.00916.61
7.3.120.0100.00714.63
7.3.110.0060.00914.80
7.3.100.0110.00314.75
7.3.90.0040.00814.81
7.3.80.0040.00414.88
7.3.70.0070.01014.90
7.3.60.0070.00714.72
7.3.50.0040.01114.56
7.3.40.0080.00414.68
7.3.30.0030.00614.81
7.3.20.0060.00316.35
7.3.10.0040.00816.52
7.3.00.0280.00515.35
7.2.330.0060.01216.49
7.2.320.0030.01416.78
7.2.310.0150.00616.78
7.2.300.0030.01316.62
7.2.290.0070.01016.85
7.2.250.0030.01315.25
7.2.240.0110.00715.20
7.2.230.0000.01515.02
7.2.220.0090.00615.01
7.2.210.0000.01514.95
7.2.200.0060.00914.73
7.2.190.0100.00315.03
7.2.180.0090.00614.96
7.2.170.0110.00415.00
7.2.130.0280.00914.73
7.2.120.0220.00614.94
7.2.110.0260.00315.18
7.2.100.0200.01014.89
7.2.90.0290.00714.62
7.2.80.0340.00615.11
7.2.70.0230.00714.93
7.2.60.0170.01014.64
7.2.50.0240.00714.85
7.2.40.0280.00414.66
7.2.30.0190.01114.77
7.2.20.0250.00615.15
7.2.10.1170.00714.90
7.2.00.0250.00715.01
7.1.330.0110.00315.94
7.1.320.0070.00715.43
7.1.310.0090.00615.89
7.1.300.0070.00715.80
7.1.290.0000.01415.94
7.1.280.0040.00815.50
7.1.270.0100.00615.72
7.1.260.0070.01015.39
7.1.250.0260.00613.49

preferences:
30.98 ms | 400 KiB | 5 Q