3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public function testMe() { $sut = new class(self::foo('foo')) {}; } private static function foo($foo) { var_dump($foo); } }

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.0100.01016.50
8.3.50.0140.00417.87
8.3.40.0120.00318.68
8.3.30.0140.00018.52
8.3.20.0070.00020.34
8.3.10.0080.00023.70
8.3.00.0050.00319.50
8.2.180.0070.01116.47
8.2.170.0110.00722.96
8.2.160.0100.00318.79
8.2.150.0050.00225.66
8.2.140.0040.00424.66
8.2.130.0040.00421.05
8.2.120.0070.00026.35
8.2.110.0000.00922.24
8.2.100.0070.00417.78
8.2.90.0060.00318.97
8.2.80.0000.00917.97
8.2.70.0040.00417.50
8.2.60.0040.00417.80
8.2.50.0040.00418.10
8.2.40.0050.00220.46
8.2.30.0080.00019.05
8.2.20.0000.00717.80
8.2.10.0040.00417.81
8.2.00.0050.00317.81
8.1.280.0040.01125.92
8.1.270.0040.00422.20
8.1.260.0070.00026.35
8.1.250.0000.00728.09
8.1.240.0040.00419.15
8.1.230.0110.00017.64
8.1.220.0000.00717.74
8.1.210.0060.00318.77
8.1.200.0060.00317.23
8.1.190.0080.00017.10
8.1.180.0000.00718.10
8.1.170.0030.00518.65
8.1.160.0050.00219.00
8.1.150.0040.00418.66
8.1.140.0030.00519.53
8.1.130.0030.00618.74
8.1.120.0040.00417.27
8.1.110.0050.00217.34
8.1.100.0040.00417.34
8.1.90.0000.00717.31
8.1.80.0000.00717.35
8.1.70.0000.00817.30
8.1.60.0070.00317.45
8.1.50.0000.00817.27
8.1.40.0080.00017.34
8.1.30.0050.00517.45
8.1.20.0040.00417.41
8.1.10.0030.00517.46
8.1.00.0030.00617.25
8.0.300.0070.00018.77
8.0.290.0040.00416.63
8.0.280.0030.00518.38
8.0.270.0030.00317.09
8.0.260.0060.00018.74
8.0.250.0030.00316.82
8.0.240.0000.00816.86
8.0.230.0070.00016.76
8.0.220.0080.00016.80
8.0.210.0030.00316.65
8.0.200.0030.00316.84
8.0.190.0030.00516.74
8.0.180.0070.00016.67
8.0.170.0030.00316.68
8.0.160.0040.00416.85
8.0.150.0040.00416.75
8.0.140.0030.00516.73
8.0.130.0000.00513.21
8.0.120.0000.00716.61
8.0.110.0040.00416.74
8.0.100.0040.00416.63
8.0.90.0040.00416.65
8.0.80.0060.00916.68
8.0.70.0050.00316.82
8.0.60.0000.00916.66
8.0.50.0040.00416.62
8.0.30.0110.00916.96
8.0.20.0080.01117.40
8.0.10.0060.00317.00
8.0.00.0100.00716.54
7.4.330.0000.00515.55
7.4.320.0000.00716.32
7.4.300.0030.00316.37
7.4.290.0030.00316.30
7.4.280.0000.00716.37
7.4.270.0040.00416.29
7.4.260.0070.00016.45
7.4.250.0000.00716.29
7.4.240.0000.00716.38
7.4.230.0030.00316.54
7.4.220.0090.00916.34
7.4.210.0020.01216.57
7.4.200.0030.00316.54
7.4.160.0090.00716.34
7.4.150.0090.00917.40
7.4.140.0130.00517.86
7.4.130.0080.00816.47
7.4.120.0090.00916.36
7.4.110.0100.00716.52
7.4.100.0130.01016.46
7.4.90.0110.00516.44
7.4.80.0060.01119.39
7.4.70.0000.01516.23
7.4.60.0060.00916.31
7.4.50.0070.00716.29
7.4.40.0060.00916.40
7.4.30.0030.02116.10
7.4.00.0030.01415.07
7.3.330.0050.00013.18
7.3.320.0060.00013.16
7.3.310.0030.00316.00
7.3.300.0060.00016.20
7.3.290.0000.00716.14
7.3.280.0060.01016.15
7.3.270.0090.00917.40
7.3.260.0080.00916.42
7.3.250.0170.00516.29
7.3.240.0050.01416.25
7.3.230.0140.00716.17
7.3.210.0060.01016.34
7.3.200.0060.00916.18
7.3.190.0090.00916.23
7.3.180.0140.00716.23
7.3.170.0060.00916.23
7.3.160.0100.01016.32
7.3.10.0050.00716.23
7.3.00.0020.00916.09
7.2.330.0100.00716.61
7.2.320.0070.01016.54
7.2.310.0080.00816.50
7.2.300.0030.01316.55
7.2.290.0110.00516.50
7.2.130.0060.00916.33
7.2.120.0060.00816.69
7.2.110.0080.00716.42
7.2.100.0080.00616.49
7.2.90.0090.00516.42
7.2.80.0100.00716.48
7.2.70.0050.00816.20
7.2.60.0060.00916.47
7.2.50.0120.00516.61
7.2.40.0040.00716.72
7.2.30.0060.01216.27
7.2.20.0020.01216.58
7.2.10.0090.00616.42
7.2.00.0030.00916.42
7.1.250.0100.00315.54
7.1.200.0000.01115.38
7.1.70.0030.01316.84
7.1.60.0230.01735.14
7.1.50.0210.01534.68
7.1.40.0280.01234.29
7.1.30.0260.01934.38
7.1.20.0340.01234.21
7.1.10.0090.01216.31
7.1.00.0090.01216.54
7.0.200.0060.01316.60
7.0.190.0090.00716.49
7.0.180.0080.00816.30
7.0.170.0100.01016.01
7.0.160.0060.01216.00
7.0.150.0070.01315.99
7.0.140.0060.01516.16
7.0.130.0120.00816.30
7.0.120.0060.01716.59
7.0.110.0030.01716.08
7.0.100.0140.00716.21
7.0.90.0040.01216.06
7.0.80.0090.01216.16
7.0.70.0130.01216.04
7.0.60.0130.00916.02
7.0.50.0060.01616.29
7.0.40.0120.00916.30
7.0.30.0140.00316.28
7.0.20.0000.01816.21
7.0.10.0130.00516.21
7.0.00.0090.00916.36

preferences:
51.93 ms | 401 KiB | 5 Q