3v4l.org

run code in 300+ PHP versions simultaneously
<?php class card { private $rank; private $suit; public function __construct($rank, $suit) { $this->rank = $rank; $this->suit = $suit; } public function getRank() { return $this->rank; } } $x = new card(1, 'a'); echo x.rank; ?>

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.88
8.3.50.0120.00316.40
8.3.40.0150.00018.61
8.3.30.0120.00318.67
8.3.20.0040.00420.15
8.3.10.0050.00323.52
8.3.00.0040.00423.48
8.2.180.0070.00716.63
8.2.170.0070.00722.96
8.2.160.0030.01020.25
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.00819.83
8.2.120.0070.00026.35
8.2.110.0060.00320.97
8.2.100.0080.00318.04
8.2.90.0000.00819.05
8.2.80.0040.00417.97
8.2.70.0040.00417.46
8.2.60.0040.00417.68
8.2.50.0040.00418.07
8.2.40.0060.00322.32
8.2.30.0050.00319.46
8.2.20.0030.00517.86
8.2.10.0000.00818.13
8.2.00.0020.00518.11
8.1.270.0130.00620.25
8.1.260.0030.00528.09
8.1.250.0040.00428.09
8.1.240.0060.00324.02
8.1.230.0070.00419.01
8.1.220.0000.00717.76
8.1.210.0080.00018.77
8.1.200.0100.00017.48
8.1.190.0090.00516.98
8.1.180.0040.00418.10
8.1.170.0080.00018.38
8.1.160.0040.00420.80
8.1.150.0000.00718.80
8.1.140.0080.00019.48
8.1.130.0030.00317.68
8.1.120.0030.00317.42
8.1.110.0070.00017.42
8.1.100.0000.00817.45
8.1.90.0070.00017.49
8.1.80.0040.00417.33
8.1.70.0050.00317.46
8.1.60.0040.00417.59
8.1.50.0050.00317.55
8.1.40.0040.00417.52
8.1.30.0040.00417.64
8.1.20.0020.00517.60
8.1.10.0050.00217.47
8.1.00.0040.00417.41
8.0.300.0070.00018.77
8.0.290.0000.00716.75
8.0.280.0030.00318.45
8.0.270.0080.00017.30
8.0.260.0060.00017.24
8.0.250.0070.00017.01
8.0.240.0050.00217.00
8.0.230.0040.00417.00
8.0.220.0070.00016.88
8.0.210.0000.00716.91
8.0.200.0070.00017.03
8.0.190.0030.00616.88
8.0.180.0060.00316.98
8.0.170.0000.00816.88
8.0.160.0040.00416.96
8.0.150.0030.00516.89
8.0.140.0000.00716.89
8.0.130.0000.00513.36
8.0.120.0080.00016.92
8.0.110.0070.00016.97
8.0.100.0040.00417.06
8.0.90.0000.00916.93
8.0.80.0090.00616.96
8.0.70.0050.00216.99
8.0.60.0040.00416.92
8.0.50.0030.00316.89
8.0.30.0090.01017.28
8.0.20.0070.01217.40
8.0.10.0070.00016.91
8.0.00.0100.01116.79
7.4.330.0030.00316.67
7.4.320.0060.00016.49
7.4.300.0080.00016.46
7.4.290.0040.00416.40
7.4.280.0030.00616.42
7.4.270.0030.00316.64
7.4.260.0070.00016.43
7.4.250.0040.00416.39
7.4.240.0020.00516.54
7.4.230.0040.00416.62
7.4.220.0090.01216.62
7.4.210.0090.00616.62
7.4.200.0030.00316.61
7.4.160.0140.00316.40
7.4.150.0100.00717.40
7.4.140.0120.00717.86
7.4.130.0140.00716.59
7.4.120.0160.01216.46
7.4.110.0090.00916.63
7.4.100.0060.01116.46
7.4.90.0100.00616.47
7.4.80.0040.01419.39
7.4.70.0090.00816.70
7.4.60.0100.00616.55
7.4.50.0060.01016.21
7.4.40.0130.00316.54
7.4.30.0130.01016.41
7.4.00.0060.00914.83
7.3.330.0050.00013.32
7.3.320.0050.00313.34
7.3.310.0000.00716.39
7.3.300.0030.00316.24
7.3.290.0080.00716.35
7.3.280.0130.00516.33
7.3.270.0090.00917.40
7.3.260.0130.01016.36
7.3.250.0100.00816.32
7.3.240.0060.01316.33
7.3.230.0050.01116.39
7.3.210.0030.01416.47
7.3.200.0160.00016.51
7.3.190.0040.01116.33
7.3.180.0040.01116.62
7.3.170.0130.00716.59
7.3.160.0130.00316.33
7.3.120.0040.01414.81
7.3.110.0000.01414.77
7.3.100.0030.01014.93
7.3.90.0030.01314.50
7.3.80.0070.01114.85
7.3.70.0000.01314.71
7.3.60.0060.00614.85
7.3.50.0070.00714.74
7.3.40.0050.00514.63
7.3.30.0120.00314.94
7.3.20.0030.01216.56
7.3.10.0080.00616.45
7.3.00.0000.01616.27
7.2.330.0120.00816.70
7.2.320.0070.01016.76
7.2.310.0070.01716.55
7.2.300.0150.00716.70
7.2.290.0080.01216.71
7.2.250.0120.00615.11
7.2.240.0040.01514.77
7.2.230.0070.01015.04
7.2.220.0150.00414.99
7.2.210.0060.00914.78
7.2.200.0030.00614.93
7.2.190.0060.00914.90
7.2.180.0030.00615.05
7.2.170.0030.00715.17
7.2.60.0000.01417.04
7.2.00.0000.01219.68
7.1.330.0070.00715.71
7.1.320.0000.01115.84
7.1.310.0070.01015.72
7.1.300.0040.01115.54
7.1.290.0040.00415.88
7.1.280.0000.00815.67
7.1.270.0030.00615.71
7.1.260.0070.01015.86
7.1.200.0140.00015.79
7.1.100.0030.00617.92
7.1.70.0060.00317.29
7.1.60.0110.01419.27
7.1.50.0070.01316.89
7.1.00.0100.07022.37
7.0.200.0000.00916.71
7.0.100.0100.07319.97
7.0.90.0130.07319.91
7.0.80.0230.07019.86
7.0.70.0030.05019.91
7.0.60.0070.07719.93
7.0.50.0030.06720.38
7.0.40.0000.05020.03
7.0.30.0130.06320.13
7.0.20.0200.03720.13
7.0.10.0130.08020.07
7.0.00.0030.08719.94
5.6.280.0000.03320.93
5.6.250.0200.08320.60
5.6.240.0030.05020.64
5.6.230.0030.05320.54
5.6.220.0100.05720.71
5.6.210.0030.06720.59
5.6.200.0100.08021.12
5.6.190.0100.07721.17
5.6.180.0130.07721.03
5.6.170.0100.07721.02
5.6.160.0070.05021.02
5.6.150.0000.05021.17
5.6.140.0000.07320.93
5.6.130.0100.06721.01
5.6.120.0000.05021.02
5.6.110.0070.09320.94
5.6.100.0100.04321.01
5.6.90.0030.04721.05
5.6.80.0070.07320.39
5.6.70.0070.08720.39
5.6.60.0130.04020.45
5.6.50.0030.04720.34
5.6.40.0130.07320.52
5.6.30.0000.05320.38
5.6.20.0100.04320.43
5.6.10.0100.07020.41
5.6.00.0030.07320.39
5.5.380.0130.03720.35
5.5.370.0100.08020.41
5.5.360.0070.04320.45
5.5.350.0070.08320.32
5.5.340.0030.08720.80
5.5.330.0070.08720.75
5.5.320.0170.06720.82
5.5.310.0070.08020.92
5.5.300.0230.04020.81
5.5.290.0000.06720.73
5.5.280.0000.07020.89
5.5.270.0030.08320.92
5.5.260.0100.05020.76
5.5.250.0100.03720.71
5.5.240.0100.05020.30
5.5.230.0070.08320.26
5.5.220.0030.08320.14
5.5.210.0070.06320.20
5.5.200.0100.07720.25
5.5.190.0030.07320.08
5.5.180.0130.06720.25
5.5.160.0100.08020.25
5.5.150.0000.04720.22
5.5.140.0130.05720.12
5.5.130.0130.05720.26
5.5.120.0070.03720.24
5.5.110.0030.08320.20
5.5.100.0070.06020.07
5.5.90.0030.04720.00
5.5.80.0100.05319.97
5.5.70.0070.08020.03
5.5.60.0070.06320.04
5.5.50.0170.07020.06
5.5.40.0030.06720.08
5.5.30.0030.08720.08
5.5.20.0130.07319.91
5.5.10.0170.07319.97
5.5.00.0030.06719.95

preferences:
59.92 ms | 400 KiB | 5 Q