3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Fish { public $common_name; public $flavor; public $record_weight; function __construct($name, $flavor, $record){ $this->common_name = $name; $this->flavor = $flavor; $this->record_weight= $record; } public function getInfo(){ return "A Largemouth Bass is an Excellent flavored fish. The world record weight is 22 pounds 5 ounces." . $this->common_name . $this->flavor . $this->record_weight; } } $bass = new Fish("Largemouth Bass","Excellent","22 pounds 5 ounces"); echo $bass->getInfo();

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.0110.00416.75
8.3.50.0100.00821.16
8.3.40.0110.00418.59
8.3.30.0090.00618.84
8.3.20.0040.00420.16
8.3.10.0050.00323.52
8.3.00.0050.00321.76
8.2.180.0090.00616.50
8.2.170.0140.00322.96
8.2.160.0030.01020.39
8.2.150.0000.00724.18
8.2.140.0080.00024.66
8.2.130.0070.00020.90
8.2.120.0040.00426.35
8.2.110.0000.00921.02
8.2.100.0070.00417.93
8.2.90.0040.00419.08
8.2.80.0000.00817.97
8.2.70.0060.00317.50
8.2.60.0040.00417.68
8.2.50.0030.00618.09
8.2.40.0040.00422.27
8.2.30.0030.00519.42
8.2.20.0000.00817.62
8.2.10.0050.00318.20
8.2.00.0040.00417.93
8.1.280.0100.00325.92
8.1.270.0040.00422.24
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0000.00922.50
8.1.230.0040.00817.77
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0000.00917.36
8.1.190.0050.00317.23
8.1.180.0050.00318.10
8.1.170.0030.00618.46
8.1.160.0080.00020.68
8.1.150.0060.00318.90
8.1.140.0000.00819.58
8.1.130.0030.00317.68
8.1.120.0000.00717.35
8.1.110.0070.00017.48
8.1.100.0000.00717.51
8.1.90.0030.00517.51
8.1.80.0000.01117.49
8.1.70.0000.00717.39
8.1.60.0000.00817.53
8.1.50.0050.00517.54
8.1.40.0000.00817.55
8.1.30.0030.00617.66
8.1.20.0040.00417.63
8.1.10.0000.00817.55
8.1.00.0040.00417.49
8.0.300.0040.00418.77
8.0.290.0000.00816.63
8.0.280.0000.00818.36
8.0.270.0000.00717.18
8.0.260.0030.00317.25
8.0.250.0000.00716.98
8.0.240.0000.00716.98
8.0.230.0040.00416.98
8.0.220.0000.00816.93
8.0.210.0020.00516.94
8.0.200.0030.00317.04
8.0.190.0070.00016.95
8.0.180.0000.00716.91
8.0.170.0050.00316.83
8.0.160.0070.00016.96
8.0.150.0030.00616.86
8.0.140.0000.00916.85
8.0.130.0030.00313.29
8.0.120.0040.00416.83
8.0.110.0040.00416.82
8.0.100.0070.00016.96
8.0.90.0000.00716.96
8.0.80.0070.00716.88
8.0.70.0000.00716.88
8.0.60.0040.00416.78
8.0.50.0000.00716.75
8.0.30.0130.00616.91
8.0.20.0080.01017.40
8.0.10.0020.00516.99
8.0.00.0130.00716.77
7.4.330.0020.00216.80
7.4.320.0030.00316.60
7.4.300.0060.00316.63
7.4.290.0050.00516.58
7.4.280.0000.00816.61
7.4.270.0040.00416.42
7.4.260.0050.00216.39
7.4.250.0060.00316.47
7.4.240.0030.00516.47
7.4.230.0060.00016.51
7.4.220.0030.01416.48
7.4.210.0100.00616.58
7.4.200.0030.00316.41
7.4.160.0080.00816.55
7.4.150.0070.01117.40
7.4.140.0140.00717.86
7.4.130.0100.01016.54
7.4.120.0140.00616.62
7.4.110.0000.01616.36
7.4.100.0060.01216.52
7.4.90.0100.01016.50
7.4.80.0060.01019.39
7.4.70.0100.00716.50
7.4.60.0060.00916.59
7.4.50.0100.00716.41
7.4.40.0140.00716.24
7.4.30.0110.01216.30
7.4.00.0030.01415.20
7.3.330.0000.00513.34
7.3.320.0030.00313.18
7.3.310.0040.00416.20
7.3.300.0000.00716.27
7.3.290.0040.00416.36
7.3.280.0090.00916.29
7.3.270.0100.00717.40
7.3.260.0070.01116.30
7.3.250.0070.01116.37
7.3.240.0120.00516.37
7.3.230.0030.01316.39
7.3.210.0090.00916.56
7.3.200.0060.00919.39
7.3.190.0130.00316.36
7.3.180.0090.00616.69
7.3.170.0140.00316.59
7.3.160.0070.01016.61
7.2.330.0170.00316.72
7.2.320.0100.01016.75
7.2.310.0030.01416.38
7.2.300.0130.01316.45
7.2.290.0120.00316.71
7.2.00.0000.01319.21
7.1.100.0040.01118.12
7.1.70.0030.00517.13
7.1.60.0070.00719.40
7.1.50.0080.00416.88
7.1.00.0030.07722.42
7.0.200.0350.00314.82
7.0.60.0100.03721.84
7.0.50.0030.04017.88
7.0.40.0070.06020.02
7.0.30.0300.08320.16
7.0.20.0330.06720.09
7.0.10.0100.05320.18
7.0.00.0130.08320.24
5.6.280.0000.03321.09
5.6.210.0130.03020.72
5.6.200.0070.07318.28
5.6.190.0070.05320.63
5.6.180.0230.03720.43
5.6.170.0270.04320.71
5.6.160.0130.07020.48
5.6.150.0070.05318.15
5.6.140.0000.04318.21
5.6.130.0030.04018.21
5.6.120.0070.08720.95
5.6.110.0130.07721.05
5.6.100.0030.05720.99
5.6.90.0130.07020.97
5.6.80.0100.08020.38
5.5.350.0330.07020.45
5.5.340.0070.03717.96
5.5.330.0070.04020.19
5.5.320.0200.04020.25
5.5.310.0230.05320.34
5.5.300.0170.07317.99
5.5.290.0070.05717.98
5.5.280.0130.07020.87
5.5.270.0030.08020.77
5.5.260.0100.08320.96
5.5.250.0070.08020.72
5.5.240.0300.06720.35

preferences:
39.49 ms | 401 KiB | 5 Q