3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Example2 { public function __construct($first, $second) { echo "$first then $second\n"; } } $class = new ReflectionClass(Example2::class); $object = $class->newInstanceArgs(['second' => 'two', 'first' => 'one']);

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.0030.01516.32
8.3.50.0070.00720.21
8.3.40.0090.00619.04
8.3.30.0120.00318.96
8.3.20.0040.00424.18
8.3.10.0080.00024.66
8.3.00.0040.00426.16
8.2.180.0150.00425.92
8.2.170.0060.01618.95
8.2.160.0070.00722.96
8.2.150.0060.00325.66
8.2.140.0040.00424.66
8.2.130.0060.00326.16
8.2.120.0050.00326.16
8.2.110.0090.00019.30
8.2.100.0040.00819.42
8.2.90.0040.00419.07
8.2.80.0080.00017.97
8.2.70.0030.00517.50
8.2.60.0000.00918.04
8.2.50.0040.00418.07
8.2.40.0040.00418.09
8.2.30.0000.00719.43
8.2.20.0040.00420.30
8.2.10.0030.00517.73
8.2.00.0000.00719.10
8.1.280.0080.00825.92
8.1.270.0050.00323.99
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0030.00622.10
8.1.230.0040.00820.88
8.1.220.0000.00918.77
8.1.210.0030.00520.57
8.1.200.0000.00817.25
8.1.190.0050.00317.40
8.1.180.0000.00918.10
8.1.170.0040.00418.68
8.1.160.0060.00318.66
8.1.150.0040.00418.55
8.1.140.0050.00317.30
8.1.130.0060.00318.82
8.1.120.0040.00417.37
8.1.110.0030.00517.37
8.1.100.0080.00517.29
8.1.90.0100.00517.34
8.1.80.0080.00617.31
8.1.70.0080.00517.32
8.1.60.0090.00517.58
8.1.50.0080.00517.50
8.1.40.0090.00517.44
8.1.30.0100.00617.57
8.1.20.0110.00417.47
8.1.10.0120.00617.56
8.1.00.0120.00817.46
8.0.300.0000.00819.96
8.0.290.0040.00417.18
8.0.280.0040.00418.43
8.0.270.0080.00016.75
8.0.260.0000.00618.37
8.0.250.0030.00616.96
8.0.240.0000.00616.95
8.0.230.0080.00516.87
8.0.220.0060.00416.84
8.0.210.0040.00616.85
8.0.200.0080.00216.94
8.0.190.0040.00616.88
8.0.180.0040.00716.82
8.0.170.0060.00516.92
8.0.160.0130.00416.85
8.0.150.0150.00116.80
8.0.140.0130.00416.79
8.0.130.0110.00716.82
8.0.120.0110.00716.85
8.0.110.0120.00516.81
8.0.100.0160.00216.84
8.0.90.0130.00516.75
8.0.80.0120.00516.81
8.0.70.0130.00416.74
8.0.60.0140.00416.82
8.0.50.0120.00516.82
8.0.30.0100.00616.80
8.0.20.0120.00516.88
8.0.10.0070.00416.90
7.4.330.0000.00515.55
7.4.320.0000.00616.34
7.4.300.0050.00216.51
7.4.290.0050.00516.53
7.4.280.0060.00716.45
7.4.270.0060.00716.54
7.4.260.0130.00316.51
7.4.250.0080.00916.47
7.4.240.0130.00416.38
7.4.230.0080.00916.54
7.4.220.0120.00416.50
7.4.210.0100.00516.49
7.4.200.0140.00316.51
7.4.190.0100.00416.54
7.4.180.0090.00516.50
7.4.160.0050.01116.53
7.4.150.0110.00216.41
7.4.140.0080.00616.34
7.4.130.0080.00616.36
7.4.120.0120.00416.40
7.4.110.0080.00716.42
7.4.100.0100.00416.46
7.4.90.0080.00516.38
7.4.80.0080.00616.36
7.4.70.0080.00616.44
7.4.60.0060.00816.34
7.4.50.0130.00316.22
7.4.40.0090.00416.31
7.4.30.0100.00316.49
7.4.20.0120.00116.36
7.4.10.0050.01016.47
7.4.00.0070.00916.46

preferences:
48.37 ms | 400 KiB | 5 Q