3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { private $bar; public static function make() { $foo = new static; $foo->bar = 'Hello World!'; return $foo; } public function getBar() { return $this->bar; } } var_dump(Foo::make());

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.0120.00918.55
8.3.50.0060.00918.10
8.3.40.0140.00018.84
8.3.30.0070.00718.67
8.3.20.0040.00420.86
8.3.10.0070.00020.04
8.3.00.0100.00020.73
8.2.180.0120.00916.38
8.2.170.0140.00022.96
8.2.160.0090.00622.14
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00421.04
8.2.110.0070.00422.30
8.2.100.0080.00317.84
8.2.90.0080.00017.63
8.2.80.0050.00318.62
8.2.70.0060.00317.92
8.2.60.0040.00418.05
8.2.50.0060.00318.10
8.2.40.0040.00419.21
8.2.30.0070.00019.23
8.2.20.0040.00417.86
8.2.10.0040.00418.72
8.2.00.0030.00419.18
8.1.280.0070.00725.92
8.1.270.0080.00022.33
8.1.260.0030.00526.35
8.1.250.0020.00528.09
8.1.240.0090.00022.18
8.1.230.0040.00717.57
8.1.220.0000.00817.74
8.1.210.0030.00518.77
8.1.200.0060.00317.22
8.1.190.0000.00917.23
8.1.180.0030.00618.10
8.1.170.0040.00418.53
8.1.160.0000.00719.05
8.1.150.0070.00018.78
8.1.140.0000.00820.61
8.1.130.0000.00720.03
8.1.120.0070.00017.39
8.1.110.0000.00717.29
8.1.100.0040.00417.45
8.1.90.0050.00317.46
8.1.80.0030.00517.29
8.1.70.0070.00017.33
8.1.60.0000.00817.55
8.1.50.0080.00017.52
8.1.40.0060.00317.43
8.1.30.0030.00517.66
8.1.20.0040.00417.63
8.1.10.0080.00017.38
8.1.00.0030.00617.30
8.0.300.0040.00418.77
8.0.290.0000.00716.75
8.0.280.0030.00318.44
8.0.270.0090.00017.18
8.0.260.0080.00019.98
8.0.250.0030.00316.79
8.0.240.0060.00016.86
8.0.230.0050.00216.79
8.0.220.0000.00716.85
8.0.210.0030.00316.84
8.0.200.0000.00616.85
8.0.190.0000.00716.85
8.0.180.0030.00616.73
8.0.170.0040.00416.89
8.0.160.0040.00416.84
8.0.150.0050.00216.76
8.0.140.0050.00216.77
8.0.130.0000.00513.27
8.0.120.0050.00316.82
8.0.110.0050.00316.89
8.0.100.0040.00416.73
8.0.90.0030.00616.70
8.0.80.0090.00616.78
8.0.70.0040.00416.86
8.0.60.0030.00316.86
8.0.50.0040.00416.80
8.0.30.0130.00517.00
8.0.20.0130.00616.98
8.0.10.0030.00516.82
8.0.00.0120.00816.75
7.4.330.0000.00515.55
7.4.320.0000.00616.35
7.4.300.0000.00616.50
7.4.290.0070.00016.59
7.4.280.0030.00616.57
7.4.270.0000.00716.64
7.4.260.0030.00313.21
7.4.250.0030.00316.46
7.4.240.0060.00216.47
7.4.230.0030.00316.39
7.4.220.0010.00516.63
7.4.210.0070.00716.53
7.4.200.0040.00416.60
7.4.130.0050.01116.36
7.4.120.0180.00716.41
7.4.110.0100.00716.46
7.4.100.0160.00616.34
7.4.90.0100.01016.32
7.4.80.0060.01219.39
7.4.70.0110.00516.43
7.4.60.0180.00016.33
7.4.50.0090.00616.61
7.4.40.0100.00616.34
7.4.00.0110.00514.78
7.3.330.0040.00416.30
7.3.320.0050.00013.16
7.3.310.0000.00716.14
7.3.300.0030.00316.26
7.3.290.0100.00516.27
7.3.280.0180.00016.31
7.3.260.0110.00716.41
7.3.240.0090.00816.39
7.3.230.0160.00616.65
7.3.210.0080.00816.26
7.3.200.0060.01116.35
7.3.190.0060.02016.64
7.3.180.0040.01216.27
7.3.170.0100.00616.54
7.3.160.0090.00616.43
7.3.120.0080.00614.83
7.3.110.0050.00814.62
7.3.100.0090.00614.62
7.3.90.0040.01714.55
7.3.80.0080.01114.82
7.3.70.0080.01114.61
7.3.60.0150.00514.75
7.3.50.0120.00914.76
7.3.40.0060.01214.63
7.3.30.0060.01314.74
7.3.20.0130.00614.74
7.3.10.0160.00514.78
7.3.00.0110.00314.80
7.2.330.0130.00916.61
7.2.320.0030.01316.36
7.2.310.0100.00716.55
7.2.300.0130.00316.62
7.2.290.0110.00616.54
7.2.250.0140.00415.01
7.2.240.0080.00714.94
7.2.230.0070.01214.72
7.2.220.0160.00314.92
7.2.210.0090.00914.87
7.2.200.0080.01214.89
7.2.190.0120.00714.78
7.2.180.0110.00914.91
7.2.170.0120.00714.92
7.2.160.0130.01014.90
7.2.150.0160.00715.01
7.2.140.0150.00715.00
7.2.130.0040.01515.03
7.2.120.0080.01015.07
7.2.110.0100.01014.98
7.2.100.0100.00814.83
7.2.90.0080.00914.93
7.2.80.0140.00314.91
7.2.70.0070.01014.98
7.2.60.0130.00514.79
7.2.50.0110.00815.03
7.2.40.0040.01415.10
7.2.30.0110.00714.80
7.2.20.0120.00614.95
7.2.10.0170.01014.91
7.2.00.0070.01014.76
7.1.330.0070.00913.69
7.1.320.0120.00813.72
7.1.310.0100.00713.68
7.1.300.0500.00613.87
7.1.290.0130.00413.75
7.1.280.0130.00513.72
7.1.270.0120.00713.55
7.1.260.0050.01113.89
7.1.250.0110.00613.79

preferences:
47.02 ms | 401 KiB | 5 Q