3v4l.org

run code in 300+ PHP versions simultaneously
<?php class User {} class Example { public User $user; public function __construct(User $user) { $this->user = $user; } } $class = new ReflectionClass(Example::class); $object = $class->newInstanceArgs(['User' => new User]);

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.4.10.0120.00217.73
8.3.140.0060.00316.71
8.3.130.0040.00418.63
8.3.120.0040.00420.76
8.3.110.0030.00616.96
8.3.100.0060.00324.06
8.3.90.0030.00626.77
8.3.80.0060.00316.88
8.3.70.0090.00916.58
8.3.60.0110.00416.63
8.3.50.0110.00420.11
8.3.40.0110.00419.21
8.3.30.0150.00419.09
8.3.20.0050.00224.18
8.3.10.0070.00024.66
8.3.00.0000.00826.16
8.2.250.0110.00717.04
8.2.240.0060.00317.05
8.2.230.0030.00620.94
8.2.220.0000.00937.54
8.2.210.0040.00426.77
8.2.200.0130.00316.38
8.2.190.0150.00416.75
8.2.180.0070.00725.92
8.2.170.0110.00418.95
8.2.160.0100.00722.96
8.2.150.0080.00025.66
8.2.140.0020.00524.66
8.2.130.0000.00826.16
8.2.120.0040.00426.16
8.2.110.0000.00919.21
8.2.100.0080.00418.03
8.2.90.0030.00618.34
8.2.80.0000.00817.97
8.2.70.0030.00617.93
8.2.60.0110.00417.53
8.2.50.0080.00717.61
8.2.40.0100.00319.82
8.2.30.0090.00517.76
8.2.20.0080.00518.90
8.2.10.0080.00517.63
8.2.00.0090.00318.42
8.1.300.0060.00317.84
8.1.290.0100.00018.88
8.1.280.0130.00725.92
8.1.270.0050.00323.99
8.1.260.0070.00026.35
8.1.250.0080.00028.09
8.1.240.0030.00622.30
8.1.230.0060.00620.92
8.1.220.0000.00817.77
8.1.210.0040.00418.79
8.1.200.0000.00917.35
8.1.190.0030.00617.23
8.1.180.0090.00517.31
8.1.170.0100.00317.86
8.1.160.0120.00417.91
8.1.150.0060.00717.79
8.1.140.0050.00917.08
8.1.130.0070.00617.27
8.1.120.0050.00817.26
8.1.110.0140.00017.34
8.1.100.0070.00717.35
8.1.90.0060.00817.23
8.1.80.0110.00417.36
8.1.70.0110.00517.32
8.1.60.0120.00517.40
8.1.50.0100.00517.31
8.1.40.0090.00717.27
8.1.30.0140.00517.33
8.1.20.0120.00817.48
8.1.10.0100.00617.38
8.1.00.0130.00417.33
8.0.300.0040.00419.82
8.0.290.0080.00316.58
8.0.280.0090.00417.40
8.0.270.0090.00417.29
8.0.260.0110.00316.66
8.0.250.0090.00416.71
8.0.240.0080.00616.73
8.0.230.0110.00216.71
8.0.220.0070.00516.65
8.0.210.0080.00516.70
8.0.200.0050.00916.74
8.0.190.0060.00816.72
8.0.180.0090.00516.64
8.0.170.0080.00416.69
8.0.160.0070.00816.65
8.0.150.0130.00416.67
8.0.140.0110.00616.66
8.0.130.0110.00716.61
8.0.120.0110.00616.68
8.0.110.0120.00516.72
8.0.100.0140.00416.70
8.0.90.0130.00416.75
8.0.80.0120.00516.73
8.0.70.0130.00516.64
8.0.60.0120.00516.62
8.0.50.0140.00316.67
8.0.30.0130.00516.60
8.0.20.0130.00416.67
8.0.10.0130.00316.77
7.4.330.0080.00216.03
7.4.320.0060.00716.47
7.4.300.0080.00316.48
7.4.290.0120.00316.46
7.4.280.0110.00616.45
7.4.270.0140.00316.42
7.4.260.0080.00816.44
7.4.250.0150.00116.39
7.4.240.0130.00416.52
7.4.230.0130.00316.42
7.4.220.0120.00316.37
7.4.210.0100.00716.37
7.4.200.0110.00516.39
7.4.190.0100.00616.45
7.4.180.0080.00616.50
7.4.160.0080.00716.43
7.4.150.0110.00416.38
7.4.140.0080.00716.33
7.4.130.0100.00616.28
7.4.120.0110.00416.33
7.4.110.0070.00716.21
7.4.100.0090.00616.46
7.4.90.0090.00516.38
7.4.80.0110.00516.25
7.4.70.0090.00716.30
7.4.60.0110.00516.38
7.4.50.0110.00416.19
7.4.40.0090.00616.26
7.4.30.0120.00416.29
7.4.20.0110.00416.26
7.4.10.0120.00416.34
7.4.00.0100.00516.26

preferences:
40.72 ms | 403 KiB | 5 Q