3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { private $b; function __construct() { $this->b = new B; } function __call($method, $args) { $this->b->$method(...$args); } } class B { function work($p1, $p2, $p3) { var_dump($p1, $p2, $p3); } } (new B)->work(1, 2, 3); (new A)->work(4, 5, 6); (new A)->not();

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.0160.00617.00
8.3.50.0070.01116.29
8.3.40.0070.01418.82
8.3.30.0110.00418.91
8.3.20.0040.00420.30
8.3.10.0030.00521.91
8.3.00.0040.00419.50
8.2.180.0110.00716.75
8.2.170.0040.01122.96
8.2.160.0080.00820.21
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0080.00019.31
8.2.120.0080.00026.35
8.2.110.0060.00321.19
8.2.100.0030.00918.03
8.2.90.0030.00519.14
8.2.80.0040.00417.97
8.2.70.0090.00017.50
8.2.60.0030.00517.93
8.2.50.0000.00818.10
8.2.40.0070.00020.66
8.2.30.0070.00019.16
8.2.20.0000.00817.95
8.2.10.0040.00417.89
8.2.00.0040.00417.95
8.1.280.0150.00625.92
8.1.270.0000.00723.91
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00323.92
8.1.230.0070.00417.51
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0030.00617.23
8.1.190.0030.00617.23
8.1.180.0050.00318.10
8.1.170.0070.00318.48
8.1.160.0040.00419.03
8.1.150.0040.00418.80
8.1.140.0040.00419.34
8.1.130.0040.00418.75
8.1.120.0040.00317.36
8.1.110.0050.00517.39
8.1.100.0050.00317.45
8.1.90.0080.00017.30
8.1.80.0030.00317.32
8.1.70.0000.00717.43
8.1.60.0040.00417.55
8.1.50.0050.00217.51
8.1.40.0030.00617.52
8.1.30.0000.00817.56
8.1.20.0030.00517.60
8.1.10.0040.00417.49
8.1.00.0040.00417.41
8.0.300.0040.00418.77
8.0.290.0000.00816.75
8.0.280.0030.00318.34
8.0.270.0030.00317.06
8.0.260.0000.00616.75
8.0.250.0030.00316.85
8.0.240.0040.00416.91
8.0.230.0030.00316.99
8.0.220.0030.00316.91
8.0.210.0000.00716.93
8.0.200.0030.00316.98
8.0.190.0030.00616.87
8.0.180.0050.00216.85
8.0.170.0040.00416.82
8.0.160.0040.00416.93
8.0.150.0040.00416.82
8.0.140.0030.00316.84
8.0.130.0000.00513.37
8.0.120.0080.00016.86
8.0.110.0070.00016.80
8.0.100.0040.00416.82
8.0.90.0000.00716.95
8.0.80.0030.01216.93
8.0.70.0040.00416.80
8.0.60.0030.00516.82
8.0.50.0040.00416.89
8.0.30.0120.00617.07
8.0.20.0150.00717.40
8.0.10.0040.00416.85
8.0.00.0070.01016.69
7.4.330.0000.00515.55
7.4.320.0040.00416.55
7.4.300.0000.00616.42
7.4.290.0090.00016.65
7.4.280.0060.00616.59
7.4.270.0000.00716.50
7.4.260.0000.00716.50
7.4.250.0030.00616.53
7.4.240.0030.00316.52
7.4.230.0070.00016.67
7.4.220.0180.00616.70
7.4.210.0120.00616.47
7.4.200.0030.00316.42
7.4.160.0070.00916.50
7.4.150.0060.01117.40
7.4.140.0140.00917.86
7.4.130.0110.00716.42
7.4.120.0070.01316.63
7.4.110.0030.01316.40
7.4.100.0160.00916.49
7.4.90.0070.01016.56
7.4.80.0060.01219.39
7.4.70.0090.00616.50
7.4.60.0090.00616.53
7.4.50.0120.00316.37
7.4.40.0040.01216.59
7.4.30.0070.01016.49
7.4.00.0080.00814.70
7.3.330.0030.00313.15
7.3.320.0000.00613.38
7.3.310.0040.00416.39
7.3.300.0060.00016.28
7.3.290.0060.00816.36
7.3.280.0060.01116.36
7.3.270.0120.00817.40
7.3.260.0120.00516.37
7.3.250.0100.00716.41
7.3.240.0110.00616.46
7.3.230.0100.00716.57
7.3.210.0120.00416.48
7.3.200.0070.01216.33
7.3.190.0090.00916.50
7.3.180.0070.01016.29
7.3.170.0080.00816.44
7.3.160.0130.01016.59
7.2.330.0040.01416.66
7.2.320.0100.01016.77
7.2.310.0030.01316.76
7.2.300.0150.00416.62
7.2.290.0040.01216.68
7.2.60.0060.00616.73
7.2.00.0090.00619.39
7.1.200.0000.00815.77
7.1.100.0210.01117.90
7.1.70.0060.00717.07
7.1.60.0150.01534.73
7.1.50.0190.01034.71
7.1.40.0150.01234.43
7.1.30.0150.01534.45
7.1.20.0170.01034.55
7.1.10.0230.00914.95
7.1.00.0060.00916.73
7.0.200.0000.01616.87
7.0.190.0220.00615.00
7.0.180.0000.01516.30
7.0.170.0070.00716.24
7.0.160.0160.00914.57
7.0.150.0160.00714.38
7.0.140.0000.01716.29
7.0.130.0030.01016.48
7.0.120.0000.01216.50
7.0.110.0060.00916.55
7.0.100.0040.00916.47
7.0.90.0090.00616.54
7.0.80.0000.01216.28
7.0.70.0030.01216.23
7.0.60.0040.00916.02
7.0.50.0030.01016.39
7.0.40.0240.00614.60
7.0.30.0170.00714.71
7.0.20.0060.00916.30
7.0.10.0070.00916.61
7.0.00.0040.00816.32

preferences:
40.21 ms | 401 KiB | 5 Q