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; } } $xx = new Card(1, 'a'); echo 1; echo $xx.getRank(); ?>

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.00916.50
8.3.50.0140.00921.19
8.3.40.0040.01118.84
8.3.30.0150.00018.89
8.3.20.0040.00420.16
8.3.10.0030.00523.53
8.3.00.0080.00023.56
8.2.180.0110.00416.50
8.2.170.0070.00722.96
8.2.160.0100.00720.49
8.2.150.0000.00824.18
8.2.140.0070.00024.66
8.2.130.0040.00419.70
8.2.120.0040.00426.35
8.2.110.0060.00322.32
8.2.100.0080.00418.05
8.2.90.0030.00519.27
8.2.80.0000.00817.97
8.2.70.0090.00017.75
8.2.60.0040.00417.92
8.2.50.0030.00618.07
8.2.40.0100.00020.36
8.2.30.0000.00819.37
8.2.20.0040.00417.68
8.2.10.0030.00518.05
8.2.00.0000.00717.98
8.1.280.0090.00625.92
8.1.270.0080.00020.33
8.1.260.0040.00428.09
8.1.250.0070.00028.09
8.1.240.0090.00023.85
8.1.230.0100.00019.13
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0030.00717.35
8.1.190.0040.00417.23
8.1.180.0000.00918.10
8.1.170.0050.00318.59
8.1.160.0000.00720.82
8.1.150.0000.00818.88
8.1.140.0040.00419.56
8.1.130.0070.00017.65
8.1.120.0000.00717.38
8.1.110.0000.00817.30
8.1.100.0070.00017.44
8.1.90.0050.00217.35
8.1.80.0040.00417.37
8.1.70.0040.00417.30
8.1.60.0000.00817.51
8.1.50.0080.00017.36
8.1.40.0050.00317.49
8.1.30.0040.00417.66
8.1.20.0040.00417.54
8.1.10.0040.00417.46
8.1.00.0050.00217.38
8.0.300.0060.00418.77
8.0.290.0040.00416.75
8.0.280.0050.00318.45
8.0.270.0080.00017.27
8.0.260.0040.00217.25
8.0.250.0030.00317.04
8.0.240.0030.00316.89
8.0.230.0000.00717.00
8.0.220.0080.00016.92
8.0.210.0030.00316.88
8.0.200.0070.00016.82
8.0.190.0000.00816.95
8.0.180.0070.00416.83
8.0.170.0050.00316.89
8.0.160.0000.00716.83
8.0.150.0030.00316.88
8.0.140.0040.00416.79
8.0.130.0000.00513.29
8.0.120.0030.00516.84
8.0.110.0000.00816.83
8.0.100.0060.00316.96
8.0.90.0000.00716.96
8.0.80.0130.00316.90
8.0.70.0040.00416.84
8.0.60.0040.00416.92
8.0.50.0050.00316.94
8.0.30.0070.01117.13
8.0.20.0090.01217.40
8.0.10.0000.00716.96
8.0.00.0110.00916.70
7.4.330.0050.00016.66
7.4.320.0050.00216.31
7.4.300.0030.00316.54
7.4.290.0000.00716.50
7.4.280.0000.00916.54
7.4.270.0000.00716.42
7.4.260.0030.00316.51
7.4.250.0050.00316.57
7.4.240.0020.00516.52
7.4.230.0000.00716.41
7.4.220.0090.00616.71
7.4.210.0060.01316.48
7.4.200.0030.00316.47
7.4.160.0080.00816.35
7.4.150.0140.00317.40
7.4.140.0070.01217.86
7.4.130.0070.01216.54
7.4.120.0100.00816.60
7.4.110.0040.01316.40
7.4.100.0000.01816.39
7.4.90.0060.01016.54
7.4.80.0120.00919.39
7.4.70.0100.00716.66
7.4.60.0100.00616.63
7.4.50.0090.00616.68
7.4.40.0100.01016.48
7.4.30.0090.00916.62
7.4.00.0100.00915.14
7.3.330.0020.00213.37
7.3.320.0050.00313.13
7.3.310.0000.00716.23
7.3.300.0030.00316.30
7.3.290.0040.01016.28
7.3.280.0110.01016.32
7.3.270.0110.00717.40
7.3.260.0100.00616.63
7.3.250.0160.00616.38
7.3.240.0140.00516.32
7.3.230.0090.00616.56
7.3.210.0130.00316.48
7.3.200.0150.00919.39
7.3.190.0130.00316.34
7.3.180.0120.00316.44
7.3.170.0130.01316.48
7.3.160.0060.00916.30
7.3.120.0060.01114.51
7.3.110.0100.00614.65
7.3.100.0080.00614.87
7.3.90.0080.00514.80
7.3.80.0050.00814.73
7.3.70.0070.00814.79
7.3.60.0080.00514.89
7.3.50.0060.00414.83
7.3.40.0050.00514.79
7.3.30.0080.00514.87
7.3.20.0090.00516.63
7.3.10.0070.00816.55
7.3.00.0070.00916.46
7.2.330.0070.01116.67
7.2.320.0110.00616.69
7.2.310.0100.00816.81
7.2.300.0060.01316.64
7.2.290.0070.01416.59
7.2.250.0030.01715.09
7.2.240.0070.01114.90
7.2.230.0080.01015.06
7.2.220.0080.00615.19
7.2.210.0080.00815.28
7.2.200.0110.00314.93
7.2.190.0030.01214.88
7.2.180.0080.00714.96
7.2.170.0090.00715.10
7.2.160.0070.01015.10
7.2.150.0110.00716.97
7.2.140.0070.00716.93
7.2.130.0070.00716.96
7.2.120.0060.00916.80
7.2.110.0040.00916.99
7.2.100.0060.00916.91
7.2.90.0030.00916.73
7.2.80.0030.00816.81
7.2.70.0040.01216.97
7.2.60.0070.00916.74
7.2.50.0060.00816.75
7.2.40.0070.00816.84
7.2.30.0100.00517.03
7.2.20.0030.01016.84
7.2.10.0070.00716.85
7.2.00.0070.00817.74
7.1.330.0050.01115.64
7.1.320.0070.00715.62
7.1.310.0040.00915.73
7.1.300.0080.00515.63
7.1.290.0020.01315.70
7.1.280.0070.00415.78
7.1.270.0060.00615.68
7.1.260.0080.00615.39
7.1.250.0070.00615.70
7.1.200.0110.00015.77
7.1.100.0040.00917.96
7.1.70.0000.01317.02
7.1.60.0090.01219.27
7.1.50.0070.01516.80
7.1.00.0030.07322.37
7.0.200.0070.00316.82
7.0.60.0100.08321.71
7.0.50.0070.03717.99
7.0.40.0070.08020.13
7.0.30.0230.04020.21
7.0.20.0330.07720.19
7.0.10.0130.06320.21
7.0.00.0030.04720.32
5.6.280.0000.04720.82
5.6.210.0070.07020.57
5.6.200.0070.03718.18
5.6.190.0070.04020.77
5.6.180.0400.06020.41
5.6.170.0270.07720.49
5.6.160.0130.08020.54
5.6.150.0030.07018.15
5.6.140.0030.04018.14
5.6.130.0030.08018.21
5.6.120.0070.05721.00
5.6.110.0070.07020.98
5.6.100.0070.03721.11
5.6.90.0170.03321.11
5.6.80.0070.06720.47
5.5.350.0030.07720.39
5.5.340.0030.05317.99
5.5.330.0200.07020.21
5.5.320.0300.05320.31
5.5.310.0200.04020.34
5.5.300.0070.07717.95
5.5.290.0000.08017.96
5.5.280.0070.09020.63
5.5.270.0070.05320.76
5.5.260.0030.04320.80
5.5.250.0100.03720.59
5.5.240.0130.04720.16

preferences:
58.98 ms | 401 KiB | 5 Q