3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MyClass { /** @return static */ public function fluent() : self { return $this; } } class MyExtended extends MyClass { public function getClass() : string { return __CLASS__; } } var_dump((new MyExtended())->fluent()->getClass());

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.70.0140.00716.50
8.3.60.0120.00318.31
8.3.50.0140.00621.90
8.3.40.0070.00718.65
8.3.30.0120.00318.43
8.3.20.0080.00321.70
8.3.10.0040.00421.71
8.3.00.0040.00423.66
8.2.190.0090.00616.58
8.2.180.0140.00316.75
8.2.170.0070.00722.96
8.2.160.0090.00620.52
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0070.00021.06
8.2.110.0000.00920.42
8.2.100.0080.00417.77
8.2.90.0000.00817.63
8.2.80.0120.00017.97
8.2.70.0000.00817.93
8.2.60.0040.00419.40
8.2.50.0050.00518.10
8.2.40.0060.00320.42
8.2.30.0040.00419.04
8.2.20.0050.00218.03
8.2.10.0000.00817.91
8.2.00.0000.00717.53
8.1.280.0070.01425.92
8.1.270.0040.00423.71
8.1.260.0040.01126.35
8.1.250.0070.00028.09
8.1.240.0030.00619.09
8.1.230.0030.00920.32
8.1.220.0000.00817.74
8.1.210.0080.00018.77
8.1.200.0050.00317.23
8.1.190.0030.00617.23
8.1.180.0060.00318.10
8.1.170.0040.00418.37
8.1.160.0030.00322.13
8.1.150.0040.00418.75
8.1.140.0050.00219.35
8.1.130.0070.00017.38
8.1.120.0040.00417.33
8.1.110.0060.00317.24
8.1.100.0030.00317.21
8.1.90.0000.00817.32
8.1.80.0040.00417.34
8.1.70.0000.00817.21
8.1.60.0000.00817.39
8.1.50.0000.00817.42
8.1.40.0040.00417.46
8.1.30.0000.00817.63
8.1.20.0040.00417.52
8.1.10.0000.00817.31
8.1.00.0030.00517.26
8.0.300.0030.00518.77
8.0.290.0040.00416.75
8.0.280.0030.00318.43
8.0.270.0050.00317.20
8.0.260.0000.00716.75
8.0.250.0030.00316.88
8.0.240.0000.00816.84
8.0.230.0000.00716.83
8.0.220.0000.00716.80
8.0.210.0000.00816.77
8.0.200.0040.00416.88
8.0.190.0000.00716.86
8.0.180.0000.00716.74
8.0.170.0040.00416.86
8.0.160.0000.00716.72
8.0.150.0070.00316.80
8.0.140.0000.00816.70
8.0.130.0000.00513.29
8.0.120.0000.00816.78
8.0.110.0040.00416.88
8.0.100.0000.00716.71
8.0.90.0000.00816.80
8.0.80.0070.01416.80
8.0.70.0000.00716.69
8.0.60.0070.00016.86
8.0.50.0040.00416.71
8.0.30.0150.00217.10
8.0.20.0110.00717.40
8.0.10.0050.00216.97
8.0.00.0080.01216.69
7.4.330.0050.00015.55
7.4.320.0030.00316.36
7.4.300.0000.00616.44
7.4.290.0000.00716.45
7.4.280.0060.00316.42
7.4.270.0030.00316.52
7.4.260.0000.00716.52
7.4.250.0030.00316.41
7.4.240.0020.00516.52
7.4.230.0030.00316.48
7.4.220.0060.01216.39
7.4.210.0090.00916.50
7.4.200.0000.00716.34
7.4.160.0110.00516.33
7.4.150.0060.01017.40
7.4.140.0080.01017.86
7.4.130.0100.00816.36
7.4.120.0100.01216.43
7.4.110.0060.01816.41
7.4.100.0080.01216.51
7.4.90.0100.00716.52
7.4.80.0160.00719.39
7.4.70.0150.00616.36
7.4.60.0130.01016.61
7.4.50.0030.01316.43
7.4.40.0130.00316.48
7.4.30.0030.01316.30
7.4.00.0030.01314.98
7.3.330.0000.00613.30
7.3.320.0000.00513.04
7.3.310.0050.00316.04
7.3.300.0070.00016.24
7.3.290.0090.00616.23
7.3.280.0100.00816.24
7.3.270.0130.00617.40
7.3.260.0120.00716.32
7.3.250.0140.00216.25
7.3.240.0170.00516.17
7.3.230.0030.01316.39
7.3.210.0070.01016.47
7.3.200.0080.01416.25
7.3.190.0100.00616.09
7.3.180.0070.01016.26
7.3.170.0060.01016.38
7.3.160.0040.01216.46
7.3.10.0040.01416.25
7.3.00.0070.00716.55
7.2.330.0130.00316.57
7.2.320.0070.01016.39
7.2.310.0040.01316.29
7.2.300.0230.00316.34
7.2.290.0090.00616.34
7.2.130.0030.01016.44
7.2.120.0100.00316.78
7.2.110.0070.00416.75
7.2.100.0040.01216.57
7.2.90.0030.01216.60
7.2.80.0030.00916.80
7.2.70.0090.00616.90
7.2.60.0090.00516.69
7.2.50.0070.00716.95
7.2.40.0000.01416.70
7.2.30.0120.00316.77
7.2.20.0070.01016.96
7.2.10.0100.00016.68
7.2.00.0090.00616.75
7.1.250.0040.00815.89
7.1.200.0070.00715.86
7.1.100.0750.01116.08
7.1.70.0040.00417.29
7.1.60.0070.00317.18
7.1.50.0070.00716.69
7.1.00.0030.07722.56
7.0.200.0100.00314.63
7.0.120.0030.07322.15
7.0.110.0030.07722.02
7.0.100.0000.07322.02
7.0.90.0030.07722.04
7.0.80.0000.07322.18
7.0.70.0030.06721.97
7.0.60.0030.06022.05
7.0.50.0000.07722.22
7.0.40.0070.06722.20
7.0.30.0000.07722.18
7.0.20.0030.07321.97
7.0.10.0000.07722.20
7.0.00.0100.06721.97
5.6.260.0030.07321.13
5.6.250.0000.06721.10
5.6.240.0070.07321.04
5.6.230.0100.07020.87
5.6.220.0070.06320.83
5.6.210.0030.06721.05
5.6.200.0000.07721.09
5.6.190.0070.07321.00
5.6.180.0030.07321.04
5.6.170.0170.05721.06
5.6.160.0030.06721.05
5.6.150.0000.08020.80
5.6.140.0070.07021.05
5.6.130.0070.07020.93
5.6.120.0100.05720.80
5.6.110.0100.07020.84
5.6.100.0070.07320.99
5.6.90.0070.06721.01
5.6.80.0070.06320.32
5.6.70.0070.06720.17
5.6.60.0070.07020.36
5.6.50.0030.06320.21
5.6.40.0030.07020.28
5.6.30.0070.07020.30
5.6.20.0030.07320.18
5.6.10.0000.06320.44
5.6.00.0030.07020.35

preferences:
44.72 ms | 401 KiB | 5 Q