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 clear_table($table) { } } $x = new card(1, 'a'); echo x; ?>

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.0070.01116.75
8.3.50.0150.00721.08
8.3.40.0050.00918.82
8.3.30.0090.00618.77
8.3.20.0000.00720.21
8.3.10.0000.00823.52
8.3.00.0000.00723.66
8.2.180.0120.00317.00
8.2.170.0070.00722.96
8.2.160.0070.00720.35
8.2.150.0070.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00419.76
8.2.120.0040.00426.35
8.2.110.0060.00322.30
8.2.100.0090.00317.80
8.2.90.0030.00519.17
8.2.80.0100.00018.16
8.2.70.0050.00517.63
8.2.60.0040.00418.03
8.2.50.0040.00418.07
8.2.40.0080.00422.24
8.2.30.0070.00019.49
8.2.20.0000.00817.63
8.2.10.0000.00718.12
8.2.00.0060.00318.11
8.1.280.0090.00625.92
8.1.270.0080.00820.38
8.1.260.0000.00828.09
8.1.250.0070.00028.09
8.1.240.0040.00423.88
8.1.230.0000.01119.13
8.1.220.0000.00717.78
8.1.210.0080.00018.77
8.1.200.0040.00417.35
8.1.190.0000.00817.22
8.1.180.0040.00418.10
8.1.170.0040.00418.50
8.1.160.0000.00720.76
8.1.150.0030.00318.95
8.1.140.0000.00819.51
8.1.130.0080.00017.84
8.1.120.0040.00417.51
8.1.110.0040.00417.50
8.1.100.0080.00017.45
8.1.90.0000.00717.43
8.1.80.0070.00017.46
8.1.70.0040.00417.45
8.1.60.0060.00317.48
8.1.50.0040.00417.52
8.1.40.0080.00017.50
8.1.30.0040.00417.57
8.1.20.0040.00417.57
8.1.10.0040.00417.58
8.1.00.0040.00417.44
8.0.300.0090.00018.77
8.0.290.0050.00316.63
8.0.280.0050.00218.36
8.0.270.0000.00817.21
8.0.260.0000.00617.17
8.0.250.0030.00317.00
8.0.240.0030.00317.04
8.0.230.0000.00716.93
8.0.220.0000.00716.98
8.0.210.0040.00416.97
8.0.200.0040.00416.93
8.0.190.0030.00517.02
8.0.180.0080.00416.96
8.0.170.0040.00416.89
8.0.160.0000.00717.00
8.0.150.0000.00716.79
8.0.140.0000.00716.89
8.0.130.0000.00513.43
8.0.120.0040.00416.91
8.0.110.0040.00416.97
8.0.100.0050.00316.78
8.0.90.0000.00717.02
8.0.80.0060.00916.95
8.0.70.0020.00516.95
8.0.60.0000.00716.89
8.0.50.0000.00716.86
8.0.30.0070.01217.15
8.0.20.0150.00317.43
8.0.10.0070.00017.00
8.0.00.0110.01016.74
7.4.330.0050.00016.66
7.4.320.0030.00316.50
7.4.300.0030.00316.55
7.4.290.0030.00316.61
7.4.280.0030.00616.50
7.4.270.0030.00316.53
7.4.260.0000.00916.60
7.4.250.0040.00416.48
7.4.240.0030.00316.56
7.4.230.0000.00716.69
7.4.220.0060.00916.64
7.4.210.0030.01816.55
7.4.200.0050.00316.69
7.4.160.0060.01016.65
7.4.150.0070.01717.40
7.4.140.0110.01117.86
7.4.130.0110.01016.50
7.4.120.0100.00816.61
7.4.110.0110.00816.47
7.4.100.0100.01316.65
7.4.90.0110.00616.54
7.4.80.0060.01519.39
7.4.70.0030.01316.73
7.4.60.0060.01016.59
7.4.50.0030.01316.52
7.4.40.0030.01316.34
7.4.30.0090.00916.58
7.4.00.0000.01615.06
7.3.330.0050.00013.25
7.3.320.0030.00313.16
7.3.310.0040.00416.20
7.3.300.0030.00316.30
7.3.290.0100.00916.31
7.3.280.0100.00616.31
7.3.270.0120.00617.40
7.3.260.0060.01216.38
7.3.250.0080.01416.31
7.3.240.0090.01116.56
7.3.230.0100.00916.55
7.3.210.0100.00716.21
7.3.200.0060.01319.39
7.3.190.0120.00616.27
7.3.180.0030.01216.35
7.3.170.0080.00816.29
7.3.160.0100.00716.42
7.2.330.0000.01816.72
7.2.320.0120.01216.67
7.2.310.0180.00016.78
7.2.300.0070.01216.64
7.2.290.0100.00716.75
7.2.60.0070.00716.78
7.2.00.0000.01419.28
7.1.200.0100.00315.72
7.1.100.0040.01117.90
7.1.70.0040.00417.23
7.1.60.0030.01919.27
7.1.50.0060.00616.89
7.1.00.0000.07322.42
7.0.200.0040.00416.78
7.0.100.0230.04319.89
7.0.90.0100.06020.00
7.0.80.0100.08019.83
7.0.70.0130.07719.85
7.0.60.0130.07719.98
7.0.50.0270.06720.35
7.0.40.0030.04720.10
7.0.30.0130.06020.07
7.0.20.0100.07720.12
7.0.10.0170.06320.00
7.0.00.0000.06320.14
5.6.280.0000.03720.91
5.6.250.0170.07020.60
5.6.240.0070.08720.68
5.6.230.0170.07720.64
5.6.220.0100.08020.62
5.6.210.0000.06020.66
5.6.200.0100.08320.95
5.6.190.0070.08021.11
5.6.180.0170.07721.02
5.6.170.0070.08721.05
5.6.160.0000.04721.00
5.6.150.0130.07321.03
5.6.140.0130.07721.07
5.6.130.0070.05721.14
5.6.120.0100.09320.99
5.6.110.0030.09321.06
5.6.100.0100.05021.01
5.6.90.0030.06020.95
5.6.80.0070.08020.37
5.6.70.0030.08020.46
5.6.60.0070.06320.46
5.6.50.0170.07020.41
5.6.40.0100.04720.38
5.6.30.0070.06320.39
5.6.20.0070.08320.47
5.6.10.0100.08720.48
5.6.00.0130.07720.43
5.5.380.0070.08320.39
5.5.370.0200.07020.43
5.5.360.0100.07320.50
5.5.350.0070.05020.49
5.5.340.0170.03020.89
5.5.330.0100.07320.79
5.5.320.0100.08720.89
5.5.310.0070.08720.82
5.5.300.0200.07720.83
5.5.290.0100.08320.84
5.5.280.0130.07320.93
5.5.270.0170.06720.76
5.5.260.0130.05320.76
5.5.250.0030.04320.65
5.5.240.0130.07320.03
5.5.230.0170.07020.27
5.5.220.0070.04020.24
5.5.210.0170.05720.12
5.5.200.0100.05720.09
5.5.190.0130.05720.21
5.5.180.0100.06720.28
5.5.160.0130.06720.24
5.5.150.0230.03720.16
5.5.140.0000.08020.18
5.5.130.0100.04020.19
5.5.120.0130.07020.19
5.5.110.0070.08320.28
5.5.100.0030.08020.07
5.5.90.0130.04320.08
5.5.80.0030.07720.16
5.5.70.0100.06320.04
5.5.60.0070.07720.06
5.5.50.0070.07020.07
5.5.40.0100.03720.15
5.5.30.0130.07019.93
5.5.20.0070.06020.06
5.5.10.0070.04319.97
5.5.00.0200.05720.11

preferences:
56.95 ms | 401 KiB | 5 Q