3v4l.org

run code in 300+ PHP versions simultaneously
<?php class SomeClass{ public $name; public $sname; public $tname; public function __construct($name,$sname,$tname){ $this->name = $name; $this->sname = $sname; $this->tname = $tname; } public function getPerson(){ return $this->name.' '.$this->sname.' '.$this->tname; } } $persons = array(); for($i = 0;$i<1000;$i++){ $persons[] = new SomeClass('test '.$i,'sname test '.$i,'tname test '.$i); } foreach($persons as $k=>$v){ echo $k.' '.$v->getPerson().'<br />'; } ?>

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.30.0090.00618.93
8.3.20.0040.00418.91
8.3.10.0060.00320.92
8.3.00.0080.00022.16
8.2.160.0200.00022.96
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00420.97
8.2.110.0080.00420.50
8.2.100.0100.00317.97
8.2.90.0030.00619.46
8.2.80.0000.00818.29
8.2.70.0000.00817.88
8.2.60.0000.00918.30
8.2.50.0040.00418.07
8.2.40.0000.00818.34
8.2.30.0040.00421.28
8.2.20.0060.00317.91
8.2.10.0000.00818.07
8.2.00.0060.00317.98
8.1.270.0100.01020.83
8.1.260.0150.00326.35
8.1.250.0060.00328.09
8.1.240.0060.00322.59
8.1.230.0070.00621.27
8.1.220.0040.00418.77
8.1.210.0000.00919.21
8.1.200.0000.00917.61
8.1.190.0030.00517.68
8.1.180.0080.00018.10
8.1.170.0040.00418.94
8.1.160.0030.00519.08
8.1.150.0030.00618.91
8.1.140.0090.00017.70
8.1.130.0040.00417.92
8.1.120.0000.00717.80
8.1.110.0030.00617.67
8.1.100.0040.00417.68
8.1.90.0030.00517.72
8.1.80.0080.00017.67
8.1.70.0040.00417.66
8.1.60.0060.00317.83
8.1.50.0040.00417.67
8.1.40.0050.00317.83
8.1.30.0000.00817.89
8.1.20.0050.00317.85
8.1.10.0000.00817.80
8.1.00.0060.00317.72
8.0.300.0050.00320.15
8.0.290.0040.00417.25
8.0.280.0050.00318.62
8.0.270.0040.00417.55
8.0.260.0030.00617.14
8.0.250.0030.00517.16
8.0.240.0040.00417.07
8.0.230.0030.00417.05
8.0.220.0000.00717.08
8.0.210.0000.00817.18
8.0.200.0030.00617.06
8.0.190.0000.00817.07
8.0.180.0030.00517.13
8.0.170.0000.00717.12
8.0.160.0040.00417.11
8.0.150.0060.00316.92
8.0.140.0000.00817.03
8.0.130.0030.00313.63
8.0.120.0050.00517.06
8.0.110.0000.00817.18
8.0.100.0000.00817.24
8.0.90.0080.00017.02
8.0.80.0030.01817.01
8.0.70.0030.00617.02
8.0.60.0050.00317.12
8.0.50.0050.00317.02
8.0.30.0190.00617.50
8.0.20.0120.01317.50
8.0.10.0000.00717.02
8.0.00.0130.01116.97
7.4.330.0030.00316.70
7.4.320.0030.00316.84
7.4.300.0050.00216.89
7.4.290.0040.00416.68
7.4.280.0030.00616.63
7.4.270.0040.00416.66
7.4.260.0000.00613.51
7.4.250.0040.00416.56
7.4.240.0060.00216.74
7.4.230.0080.00016.63
7.4.220.0090.02116.56
7.4.210.0080.01016.79
7.4.200.0040.00416.82
7.4.190.0070.00016.59
7.4.160.0130.01016.86
7.4.150.0090.01517.40
7.4.140.0120.01117.86
7.4.130.0120.01216.61
7.4.120.0090.01416.87
7.4.110.0110.01116.87
7.4.100.0120.00916.70
7.4.90.0100.01316.82
7.4.80.0170.00319.39
7.4.70.0110.01116.62
7.4.60.0170.00616.95
7.4.50.0060.00316.70
7.4.40.0100.00722.77
7.4.30.0160.00616.96
7.4.00.0100.00714.91
7.3.330.0030.00313.46
7.3.320.0060.00013.35
7.3.310.0050.00316.37
7.3.300.0030.00316.43
7.3.290.0070.01016.36
7.3.280.0090.01516.48
7.3.270.0070.01517.40
7.3.260.0140.01318.24
7.3.250.0160.00716.64
7.3.240.0240.00316.87
7.3.230.0120.00916.86
7.3.210.0130.00916.90
7.3.200.0120.01819.39
7.3.190.0210.00316.56
7.3.180.0110.01416.71
7.3.170.0140.00716.88
7.3.160.0150.00616.58
7.3.120.0070.01114.95
7.2.330.0150.00917.18
7.2.320.0060.02516.94
7.2.310.0120.01216.70
7.2.300.0100.01017.05
7.2.290.0100.01317.14
7.2.00.0040.01119.57
7.1.200.0130.00315.53
7.1.100.0060.00618.10
7.1.70.0080.00417.14
7.1.60.0090.01619.40
7.1.50.0090.01617.25
7.0.200.0180.00916.34

preferences:
27.74 ms | 401 KiB | 5 Q