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.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.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.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:
12.08 ms | 406 KiB | 5 Q