3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Testi { public $temp; function __construct(string $testi){ $this->temp = $testi; } } $A = new class('') { private $name; function __construct(string $name) { $this->name = $name; } public function getName() : string { return $this->name; } }; $testiA = new Testi('A'); $testiB = new $testiA('B'); var_dump($testiA === $testiB);

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.47
8.3.50.0280.00821.19
8.3.40.0180.00318.71
8.3.30.0070.00718.67
8.3.20.0080.00020.16
8.3.10.0040.00421.49
8.3.00.0080.00023.39
8.2.180.0180.00018.29
8.2.170.0060.00918.96
8.2.160.0140.00022.96
8.2.150.0070.00025.66
8.2.140.0050.00324.66
8.2.130.0070.00719.59
8.2.120.0060.00326.35
8.2.110.0090.00021.95
8.2.100.0080.00417.80
8.2.90.0050.00319.05
8.2.80.0080.00018.03
8.2.70.0030.00617.50
8.2.60.0040.00417.80
8.2.50.0000.00818.07
8.2.40.0000.00822.22
8.2.30.0070.00020.64
8.2.20.0000.00717.72
8.2.10.0040.00418.00
8.2.00.0000.00717.98
8.1.280.0070.00725.92
8.1.270.0030.00623.75
8.1.260.0050.00328.09
8.1.250.0080.00028.09
8.1.240.0080.00023.97
8.1.230.0030.00719.05
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0040.00417.35
8.1.190.0050.00517.35
8.1.180.0080.00018.10
8.1.170.0050.00318.64
8.1.160.0020.00520.67
8.1.150.0040.00418.82
8.1.140.0030.00519.61
8.1.130.0030.00317.76
8.1.120.0000.00717.52
8.1.110.0000.00717.48
8.1.100.0040.00417.35
8.1.90.0040.00417.50
8.1.80.0040.00417.45
8.1.70.0040.00417.48
8.1.60.0030.00617.49
8.1.50.0030.00617.54
8.1.40.0000.00817.47
8.1.30.0060.00317.67
8.1.20.0070.00017.66
8.1.10.0060.00317.61
8.1.00.0030.00617.56
8.0.300.0050.00318.77
8.0.290.0030.00616.63
8.0.280.0030.00318.36
8.0.270.0030.00317.27
8.0.260.0080.00017.17
8.0.250.0030.00316.82
8.0.240.0030.00316.85
8.0.230.0000.00616.96
8.0.220.0030.00616.89
8.0.210.0020.00516.79
8.0.200.0000.00716.84
8.0.190.0110.00016.84
8.0.180.0050.00316.89
8.0.170.0030.00516.82
8.0.160.0040.00416.78
8.0.150.0040.00416.86
8.0.140.0030.00616.88
8.0.130.0000.00613.28
8.0.120.0040.00416.77
8.0.110.0040.00416.79
8.0.100.0070.00016.79
8.0.90.0000.00716.98
8.0.80.0060.01016.91
8.0.70.0000.00816.80
8.0.60.0050.00316.77
8.0.50.0000.00716.67
8.0.30.0090.00817.16
8.0.20.0130.00717.40
8.0.10.0000.00716.90
8.0.00.0090.00716.84
7.4.330.0050.00016.66
7.4.320.0000.00716.59
7.4.300.0060.00016.53
7.4.290.0060.00016.63
7.4.280.0030.00616.51
7.4.270.0000.00816.56
7.4.260.0080.00016.59
7.4.250.0000.00716.52
7.4.240.0040.00316.56
7.4.230.0080.00016.35
7.4.220.0140.01016.54
7.4.210.0040.01116.69
7.4.200.0030.00316.59
7.4.160.0040.01316.32
7.4.150.0100.01017.40
7.4.140.0080.01517.86
7.4.130.0080.01016.48
7.4.120.0130.00516.61
7.4.110.0080.01616.38
7.4.100.0100.01016.70
7.4.90.0170.00016.52
7.4.80.0060.00919.39
7.4.70.0130.00316.57
7.4.60.0120.00416.45
7.4.50.0110.00416.35
7.4.40.0140.00316.63
7.4.30.0060.00916.39
7.4.00.0030.01415.01
7.3.330.0030.00313.26
7.3.320.0000.00613.32
7.3.310.0060.00016.30
7.3.300.0000.00816.29
7.3.290.0080.00816.26
7.3.280.0120.00516.32
7.3.270.0070.01117.40
7.3.260.0080.00816.31
7.3.250.0050.01216.27
7.3.240.0080.01016.46
7.3.230.0150.00416.42
7.3.210.0090.01216.18
7.3.200.0100.01019.39
7.3.190.0100.00716.59
7.3.180.0090.01116.45
7.3.170.0090.00616.31
7.3.160.0120.00916.35
7.3.120.0070.01114.74
7.3.110.0130.00314.59
7.3.100.0090.00614.95
7.3.90.0100.00314.79
7.3.80.0030.00914.69
7.3.70.0040.01114.74
7.3.60.0030.00614.47
7.3.50.0100.00314.55
7.3.40.0100.00015.02
7.3.30.0080.00414.77
7.3.20.0140.00016.75
7.3.10.0100.00316.46
7.3.00.0070.00616.53
7.2.330.0100.00716.56
7.2.320.0090.01316.53
7.2.310.0120.00816.61
7.2.300.0030.01616.69
7.2.290.0120.01216.54
7.2.250.0070.01114.94
7.2.240.0030.01614.80
7.2.230.0070.01115.01
7.2.220.0070.01115.03
7.2.210.0110.00714.89
7.2.200.0090.00314.99
7.2.190.0060.00615.15
7.2.180.0040.00915.16
7.2.170.0070.01015.09
7.2.130.0000.01416.97
7.2.120.0030.00716.82
7.2.110.0000.01216.71
7.2.100.0030.00716.77
7.2.90.0070.01016.88
7.2.80.0120.00416.51
7.2.70.0060.00616.55
7.2.60.0090.00716.71
7.2.50.0060.00616.73
7.2.40.0060.00616.96
7.2.30.0060.00916.79
7.2.20.0060.00916.68
7.2.10.0030.00916.79
7.2.00.0080.00618.17
7.1.330.0070.00715.64
7.1.320.0000.01115.87
7.1.310.0060.01315.50
7.1.300.0120.00315.81
7.1.290.0040.01215.91
7.1.280.0030.00615.57
7.1.270.0070.00715.83
7.1.260.0060.00915.69
7.1.250.0130.00615.64
7.1.240.0030.01015.68
7.1.230.0070.01015.73
7.1.220.0000.01315.61
7.1.210.0030.00915.63
7.1.200.0080.00615.60
7.1.190.0070.00315.58
7.1.180.0060.00915.72
7.1.170.0040.00815.75
7.1.160.0040.01115.34
7.1.150.0030.00815.48
7.1.140.0080.00315.86
7.1.130.0100.00715.59
7.1.120.0070.00315.33
7.1.110.0070.00315.79
7.1.100.0090.00615.71
7.1.90.0070.00315.87
7.1.80.0040.00715.74
7.1.70.0050.00516.31
7.1.60.0030.00916.45
7.1.50.0050.00616.31
7.1.40.0040.00715.71
7.1.30.0100.00715.61
7.1.20.0060.00615.60
7.1.10.0030.00915.84
7.1.00.0050.04019.05
7.0.330.0090.00315.26
7.0.320.0060.00615.30
7.0.310.0180.00715.40
7.0.300.0060.00615.20
7.0.290.0070.01015.52
7.0.280.0030.00715.57
7.0.270.0040.00415.19
7.0.260.0030.00715.29
7.0.250.0150.00015.46
7.0.240.0030.00615.29
7.0.230.0060.00315.42
7.0.220.0110.00415.52
7.0.210.0070.00715.42
7.0.200.0090.00416.03
7.0.190.0000.00915.30
7.0.180.0000.01215.39
7.0.170.0070.00415.63
7.0.160.0000.01215.30
7.0.150.0030.00315.17
7.0.140.0040.00815.49
7.0.130.0100.00715.36
7.0.120.0000.01415.57
7.0.110.0060.00315.47
7.0.100.0080.00315.37
7.0.90.0030.01015.28
7.0.80.0080.00315.43
7.0.70.0000.01315.18
7.0.60.0070.04518.51
7.0.50.0050.03716.66
7.0.40.0030.04016.75
7.0.30.0130.02816.73
7.0.20.0100.04616.82
7.0.10.0070.03516.87
7.0.00.0090.04516.82
5.6.380.0040.01113.93
5.6.370.0000.01414.41
5.6.360.0040.00713.94
5.6.350.0030.00614.22
5.6.340.0070.00714.08
5.6.330.0070.00714.00
5.6.320.0030.00714.30
5.6.310.0030.00914.00
5.6.300.0060.00313.78
5.6.290.0000.00814.21
5.6.280.0020.03317.61
5.6.270.0040.01214.06
5.6.260.0030.00714.19
5.6.250.0040.00714.06
5.6.240.0070.00713.97
5.6.230.0040.01114.00
5.6.220.0000.01014.17
5.6.210.0090.04017.43
5.6.200.0110.04316.26
5.6.190.0070.02717.30
5.6.180.0220.03917.24
5.6.170.0170.04217.11
5.6.160.0060.04317.33
5.6.150.0020.04616.11
5.6.140.0070.03016.15
5.6.130.0020.04216.07
5.6.120.0070.03717.61
5.6.110.0110.03317.53
5.6.100.0030.04917.47
5.6.90.0060.03617.65
5.6.80.0060.02917.14
5.6.70.0070.00714.12
5.6.60.0110.00013.79
5.6.50.0000.01213.93
5.6.40.0030.01013.91
5.6.30.0030.01013.79
5.6.20.0000.01113.93
5.6.10.0000.01213.83
5.6.00.0080.00313.97
5.5.380.0040.00411.02
5.5.370.0030.00311.14
5.5.360.0000.00610.90
5.5.350.0100.02515.64
5.5.340.0090.02214.47
5.5.330.0050.03115.59
5.5.320.0360.03515.66
5.5.310.0200.03015.59
5.5.300.0080.03314.51
5.5.290.0080.04214.46
5.5.280.0110.04015.88
5.5.270.0050.04515.86
5.5.260.0020.03415.88
5.5.250.0080.04115.68
5.5.240.0110.03015.56
5.5.230.0070.00310.90
5.5.220.0080.00410.90
5.5.210.0000.00710.90
5.5.200.0000.01310.90
5.5.190.0000.00711.02
5.5.180.0050.00010.90
5.5.170.0000.01110.90
5.5.160.0000.01010.94
5.5.150.0030.00711.06
5.5.140.0030.00610.90
5.5.130.0100.00310.90
5.5.120.0080.00310.90
5.5.110.0080.00310.90
5.5.100.0000.01510.90
5.5.90.0060.00310.90
5.5.80.0040.00411.01
5.5.70.0000.01010.90
5.5.60.0060.00310.90
5.5.50.0060.00610.93
5.5.40.0050.00210.90
5.5.30.0040.00411.00
5.5.20.0040.00410.90
5.5.10.0030.00910.98
5.5.00.0030.00310.90

preferences:
52.15 ms | 401 KiB | 5 Q