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()->getBar());

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.0180.00418.68
8.3.50.0090.00618.34
8.3.40.0090.00618.79
8.3.30.0080.00818.67
8.3.20.0090.00020.86
8.3.10.0040.00420.38
8.3.00.0050.00320.35
8.2.180.0040.01416.48
8.2.170.0130.00322.96
8.2.160.0070.01322.26
8.2.150.0060.00324.18
8.2.140.0000.00824.66
8.2.130.0080.00026.16
8.2.120.0000.00726.16
8.2.110.0060.00320.35
8.2.100.0040.00717.78
8.2.90.0050.00317.77
8.2.80.0080.00017.97
8.2.70.0000.00817.80
8.2.60.0000.00818.16
8.2.50.0040.00418.10
8.2.40.0040.00419.06
8.2.30.0030.00519.08
8.2.20.0070.00017.88
8.2.10.0000.00718.93
8.2.00.0040.00419.19
8.1.280.0150.00325.92
8.1.270.0080.00022.34
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0040.00424.02
8.1.230.0040.00722.82
8.1.220.0030.00617.74
8.1.210.0110.00018.77
8.1.200.0100.00017.23
8.1.190.0090.00017.10
8.1.180.0000.00918.10
8.1.170.0060.00318.38
8.1.160.0000.00718.98
8.1.150.0040.00418.79
8.1.140.0040.00418.73
8.1.130.0000.00720.15
8.1.120.0050.00217.39
8.1.110.0070.00017.32
8.1.100.0070.00017.39
8.1.90.0050.00317.39
8.1.80.0040.00417.42
8.1.70.0000.00817.43
8.1.60.0070.00017.53
8.1.50.0050.00317.45
8.1.40.0000.00817.47
8.1.30.0000.00817.70
8.1.20.0000.00817.68
8.1.10.0030.00517.41
8.1.00.0060.00317.43
8.0.300.0050.00219.65
8.0.290.0000.00716.63
8.0.280.0070.00018.43
8.0.270.0000.00817.11
8.0.260.0000.00619.95
8.0.250.0070.00016.83
8.0.240.0030.00416.79
8.0.230.0030.00316.96
8.0.220.0060.00016.74
8.0.210.0030.00316.76
8.0.200.0060.00016.93
8.0.190.0040.00416.78
8.0.180.0060.00316.84
8.0.170.0000.00916.81
8.0.160.0000.00816.84
8.0.150.0000.00716.82
8.0.140.0040.00416.68
8.0.130.0030.00313.25
8.0.120.0040.00416.81
8.0.110.0040.00416.75
8.0.100.0080.00016.84
8.0.90.0000.00916.81
8.0.80.0030.01116.88
8.0.70.0050.00216.70
8.0.60.0030.00516.79
8.0.50.0000.00816.73
8.0.30.0120.00717.16
8.0.20.0090.00916.91
8.0.10.0040.00416.90
8.0.00.0090.00816.67
7.4.330.0000.00515.55
7.4.320.0070.00016.40
7.4.300.0060.00016.61
7.4.290.0000.00816.65
7.4.280.0000.00816.54
7.4.270.0080.00016.51
7.4.260.0030.00313.18
7.4.250.0070.00016.55
7.4.240.0000.00716.47
7.4.230.0050.00216.66
7.4.220.0020.00516.54
7.4.210.0030.01216.55
7.4.200.0000.00716.49
7.4.130.0060.01116.42
7.4.120.0060.01816.62
7.4.110.0150.00316.39
7.4.100.0070.01716.58
7.4.90.0090.00916.44
7.4.80.0040.01519.39
7.4.70.0060.00916.42
7.4.60.0000.01516.33
7.4.50.0040.01216.31
7.4.40.0130.00316.59
7.4.00.0070.00814.68
7.3.330.0030.00616.09
7.3.320.0030.00313.18
7.3.310.0070.00016.17
7.3.300.0000.00616.30
7.3.290.0070.01116.30
7.3.280.0040.01116.32
7.3.260.0150.00316.36
7.3.240.0130.00616.37
7.3.230.0080.00816.32
7.3.210.0130.00316.44
7.3.200.0100.00616.41
7.3.190.0040.01216.58
7.3.180.0040.01216.17
7.3.170.0100.00716.57
7.3.160.0070.01016.37
7.3.120.0080.00814.75
7.3.110.0070.00814.70
7.3.100.0070.00814.74
7.3.90.0080.00714.73
7.3.80.0070.00814.62
7.3.70.0080.00814.64
7.3.60.0080.00814.62
7.3.50.0070.00714.66
7.3.40.0090.00714.59
7.3.30.0090.00814.63
7.3.20.0100.00714.74
7.3.10.0110.00814.77
7.3.00.0120.00714.84
7.2.330.0070.01116.69
7.2.320.0060.01016.68
7.2.310.0080.00816.38
7.2.300.0090.01216.61
7.2.290.0130.00316.73
7.2.250.0080.00814.86
7.2.240.0100.00714.92
7.2.230.0080.00814.91
7.2.220.0050.01114.90
7.2.210.0070.00914.92
7.2.200.0070.01014.82
7.2.190.0080.00914.82
7.2.180.0080.00814.82
7.2.170.0090.00814.84
7.2.160.0080.00814.93
7.2.150.0090.00914.91
7.2.140.0100.00814.98
7.2.130.0090.00814.94
7.2.120.0110.00714.98
7.2.110.0090.00814.87
7.2.100.0090.00814.89
7.2.90.0100.00715.02
7.2.80.0110.00714.90
7.2.70.0090.00914.92
7.2.60.0090.00714.91
7.2.50.0090.01014.93
7.2.40.0100.00714.97
7.2.30.0100.00714.96
7.2.20.0090.00914.95
7.2.10.0090.00815.05
7.2.00.0120.00614.91
7.1.330.0070.00813.91
7.1.320.0070.00913.91
7.1.310.0100.00713.91
7.1.300.0080.00813.83
7.1.290.0080.00813.83
7.1.280.0100.00513.92
7.1.270.0090.00713.87
7.1.260.0070.00813.82
7.1.250.0110.00913.73

preferences:
32.68 ms | 400 KiB | 5 Q