3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Foo { function bar($a, $b): void; } class Baz implements Foo { function bar($c, $d): void { var_dump([$c, $d]); } } call_user_func_array([(new Baz), 'bar'], ['a' => 123, 'b' => 456]);

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.0090.00618.43
8.3.50.0100.00716.29
8.3.40.0140.00718.84
8.3.30.0040.01118.69
8.3.20.0070.00024.18
8.3.10.0050.00324.66
8.3.00.0090.00626.16
8.2.180.0120.00325.92
8.2.170.0000.01518.88
8.2.160.0100.00322.96
8.2.150.0090.00025.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0060.00326.35
8.2.110.0030.00622.11
8.2.100.0040.00817.91
8.2.90.0040.00417.75
8.2.80.0000.00818.89
8.2.70.0050.00317.63
8.2.60.0050.00317.63
8.2.50.0030.00517.63
8.2.40.0000.00821.20
8.2.30.0000.00819.30
8.2.20.0040.00418.05
8.2.10.0080.00019.12
8.2.00.0000.00919.24
8.1.280.0040.01125.92
8.1.270.0060.00323.99
8.1.260.0070.01128.09
8.1.250.0030.00628.09
8.1.240.0090.00023.91
8.1.230.0070.00423.86
8.1.220.0000.00717.74
8.1.210.0000.00818.77
8.1.200.0000.01117.22
8.1.190.0060.00317.13
8.1.180.0050.00318.10
8.1.170.0080.00018.52
8.1.160.0000.00818.93
8.1.150.0050.00318.86
8.1.140.0040.00418.82
8.1.130.0000.00720.10
8.1.120.0030.00417.38
8.1.110.0040.00417.39
8.1.100.0000.00717.37
8.1.90.0040.00317.27
8.1.80.0070.00317.40
8.1.70.0030.00317.38
8.1.60.0050.00217.51
8.1.50.0030.00517.41
8.1.40.0000.00817.49
8.1.30.0040.00417.48
8.1.20.0050.00317.58
8.1.10.0000.00817.53
8.1.00.0030.00617.32
8.0.300.0060.00318.77
8.0.290.0040.00416.75
8.0.280.0000.00818.44
8.0.270.0000.00816.73
8.0.260.0030.00318.36
8.0.250.0070.00017.02
8.0.240.0070.00017.03
8.0.230.0000.00716.91
8.0.220.0030.00716.91
8.0.210.0060.00016.82
8.0.200.0030.00317.00
8.0.190.0040.00416.90
8.0.180.0000.00716.86
8.0.170.0060.00316.86
8.0.160.0080.00016.95
8.0.150.0030.00616.89
8.0.140.0000.00716.94
8.0.130.0110.00215.09
8.0.120.0090.00416.93
8.0.110.0080.00416.94
8.0.100.0070.00516.88
8.0.90.0060.00416.84
8.0.80.0060.00716.83
8.0.70.0050.00416.80
8.0.60.0080.00316.83
8.0.50.0070.00416.84
8.0.30.0060.00716.99
8.0.20.0080.00817.14
8.0.10.0100.01117.10
8.0.00.0090.01017.01
7.4.330.0000.00515.55
7.4.320.0030.00316.64
7.4.300.0000.00616.64
7.4.290.0070.00016.44
7.4.280.0000.00716.50
7.4.270.0030.00316.60
7.4.260.0120.00314.85
7.4.250.0100.00316.48
7.4.240.0120.00216.38
7.4.230.0080.00416.45
7.4.220.0030.00716.45
7.4.210.0080.00816.59
7.4.200.0050.00516.57
7.4.190.0090.00516.61
7.4.180.0130.00116.60
7.4.160.0070.00816.58
7.4.150.0090.00616.84
7.4.140.0100.00816.52
7.4.130.0110.00916.44
7.4.120.0110.00816.50
7.4.110.0120.00816.45
7.4.100.0100.00916.54
7.4.90.0110.00816.49
7.4.80.0090.00816.55
7.4.70.0100.00716.51
7.4.60.0080.01016.54
7.4.50.0120.00716.53
7.4.40.0110.00816.56
7.4.30.0110.00816.49
7.4.20.0130.00716.53
7.4.10.0090.01016.53
7.4.00.0100.00816.57
7.3.330.0100.00516.13
7.3.320.0110.00214.70
7.3.310.0090.00416.24
7.3.300.0090.00416.25
7.3.290.0060.00816.25
7.3.280.0040.01016.22
7.3.270.0090.00716.73
7.3.260.0100.00816.43
7.3.250.0100.00816.46
7.3.240.0120.00716.47
7.3.230.0100.00916.43
7.3.220.0100.00816.52
7.3.210.0100.00816.47
7.3.200.0110.00716.45
7.3.190.0110.00716.43
7.3.180.0100.00916.46
7.3.170.0100.00916.48
7.3.160.0120.00716.41
7.3.150.0110.00716.39
7.3.140.0110.00716.51
7.3.130.0100.00816.47
7.3.120.0100.00716.43
7.3.110.0080.00916.38
7.3.100.0080.00816.41
7.3.90.0070.00916.51
7.3.80.0100.00716.43
7.3.70.0090.00816.44
7.3.60.0100.00916.46
7.3.50.0090.00816.51
7.3.40.0090.00816.47
7.3.30.0110.00716.46
7.3.20.0090.00916.59
7.3.10.0160.00816.60
7.3.00.0100.00816.61

preferences:
61.96 ms | 400 KiB | 5 Q