3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Human { private $name, $age; public function __construct($name, $age) { $this->name = $name; $this->age = $age; } } $data = [["John", 23], ["Nick", 32], ["Ann", 17]]; $humans = []; foreach($data as $item) { $humans[] = call_user_func_array(['Human','__construct'], $item); } var_dump($humans);

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.70.0110.00716.50
8.3.60.0090.00916.63
8.3.50.0070.01421.95
8.3.40.0070.01119.02
8.3.30.0070.00718.66
8.3.20.0040.00420.16
8.3.10.0060.00323.39
8.3.00.0110.00017.38
8.2.190.0040.01116.88
8.2.180.0160.00616.50
8.2.170.0150.00022.96
8.2.160.0110.00320.45
8.2.150.0080.00024.18
8.2.140.0050.00224.66
8.2.130.0040.00426.16
8.2.120.0080.00017.50
8.2.110.0060.00622.25
8.2.100.0040.00719.77
8.2.90.0030.00619.21
8.2.80.0000.00817.97
8.2.70.0060.00317.75
8.2.60.0040.00417.80
8.2.50.0030.00618.07
8.2.40.0040.00421.00
8.2.30.0050.00320.68
8.2.20.0000.00817.75
8.2.10.0000.00718.19
8.2.00.0080.00018.13
8.1.280.0000.01425.92
8.1.270.0080.00023.82
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0030.00622.36
8.1.230.0080.00419.34
8.1.220.0080.00017.78
8.1.210.0090.00018.77
8.1.200.0040.00417.35
8.1.190.0030.00617.23
8.1.180.0000.00818.10
8.1.170.0040.00420.60
8.1.160.0000.00722.08
8.1.150.0000.00718.83
8.1.140.0040.00419.57
8.1.130.0070.00017.71
8.1.120.0040.00417.34
8.1.110.0000.01117.45
8.1.100.0030.00517.41
8.1.90.0040.00417.44
8.1.80.0000.00717.47
8.1.70.0030.00317.48
8.1.60.0000.00917.47
8.1.50.0000.00817.43
8.1.40.0040.00417.51
8.1.30.0060.00317.57
8.1.20.0050.00317.66
8.1.10.0020.00517.59
8.1.00.0080.00017.38
8.0.300.0000.00818.77
8.0.290.0040.00416.63
8.0.280.0000.00718.45
8.0.270.0000.00717.18
8.0.260.0020.00517.30
8.0.250.0020.00517.00
8.0.240.0050.00317.08
8.0.230.0070.00017.03
8.0.220.0070.00016.84
8.0.210.0040.00416.83
8.0.200.0030.00317.06
8.0.190.0050.00316.89
8.0.180.0000.00716.91
8.0.170.0050.00316.94
8.0.160.0000.00716.96
8.0.150.0030.00316.93
8.0.140.0040.00416.92
8.0.130.0000.00613.32
8.0.120.0040.00416.81
8.0.110.0040.00416.92
8.0.100.0070.00016.89
8.0.90.0040.00416.81
8.0.80.0120.00316.91
8.0.70.0070.00016.93
8.0.60.0070.00017.08
8.0.50.0040.00416.79
8.0.30.0070.01116.85
8.0.20.0100.00917.40
8.0.10.0000.00717.10
8.0.00.0080.00916.84
7.4.330.0030.00315.10
7.4.320.0030.00316.57
7.4.300.0030.00316.65
7.4.290.0040.00416.53
7.4.280.0050.00316.64
7.4.270.0000.00716.36
7.4.260.0040.00416.46
7.4.250.0000.00716.57
7.4.240.0020.00616.56
7.4.230.0070.00016.34
7.4.220.0050.01716.68
7.4.210.0080.01016.50
7.4.200.0070.00016.70
7.4.160.0160.00616.77
7.4.150.0110.00617.40
7.4.140.0120.00917.86
7.4.130.0090.00816.57
7.4.120.0070.01016.48
7.4.110.0070.01116.59
7.4.100.0130.00416.45
7.4.90.0100.00716.55
7.4.80.0070.01719.39
7.4.70.0130.00316.43
7.4.60.0040.01216.52
7.4.50.0050.00316.49
7.4.40.0090.01216.47
7.4.30.0060.02016.50
7.4.00.0050.01115.05
7.3.330.0060.00013.22
7.3.320.0020.00213.36
7.3.310.0000.00716.39
7.3.300.0070.00016.32
7.3.290.0020.00516.30
7.3.280.0090.00816.33
7.3.270.0130.00317.40
7.3.260.0100.00716.49
7.3.250.0120.00716.45
7.3.240.0080.00816.32
7.3.230.0150.00616.39
7.3.210.0120.00916.21
7.3.200.0120.00316.44
7.3.190.0100.00616.46
7.3.180.0090.00916.35
7.3.170.0040.01216.41
7.3.160.0080.00816.40
7.3.120.0110.01114.57
7.3.110.0040.00814.98
7.3.100.0030.01014.88
7.3.90.0040.01214.86
7.3.80.0120.00315.07
7.3.70.0070.00714.82
7.3.60.0030.01014.61
7.3.50.0080.00414.78
7.3.40.0070.01014.88
7.3.30.0070.00714.94
7.3.20.0030.00616.63
7.3.10.0080.00316.36
7.3.00.0060.00316.42
7.2.330.0070.01116.59
7.2.320.0110.00716.46
7.2.310.0130.01016.37
7.2.300.0130.00316.48
7.2.290.0110.00816.53
7.2.250.0110.00714.99
7.2.240.0060.01315.01
7.2.230.0100.00714.77
7.2.220.0030.01215.22
7.2.210.0030.00915.07
7.2.200.0170.00015.17
7.2.190.0070.00714.86
7.2.180.0030.00914.98
7.2.170.0040.01115.09
7.2.00.0130.00619.52
7.1.330.0080.00815.89
7.1.320.0090.00415.90
7.1.310.0040.00915.70
7.1.300.0030.01015.96
7.1.290.0060.00315.67
7.1.280.0060.01015.81
7.1.270.0060.00315.75
7.1.260.0040.01115.78
7.1.100.0000.01717.96
7.1.70.0000.01417.18
7.1.60.0160.00919.11
7.1.50.0070.01316.91
7.1.00.0070.07322.35
7.0.200.0240.00316.35
7.0.60.0000.08719.92
7.0.50.0000.04317.88
7.0.40.0030.04720.15
7.0.30.0270.03320.30
7.0.20.0170.06320.07
7.0.10.0270.08020.26
7.0.00.0130.07320.15
5.6.280.0000.05020.91
5.6.210.0070.04720.63
5.6.200.0170.06018.18
5.6.190.0130.05720.51
5.6.180.3330.04320.46
5.6.170.0330.04720.56
5.6.160.0070.06020.52
5.6.150.0070.07318.29
5.6.140.0070.08018.18
5.6.130.0000.07318.16
5.6.120.0100.07321.05
5.6.110.0070.07020.98
5.6.100.0070.07721.12
5.6.90.0100.07721.13
5.6.80.0070.04020.40
5.6.70.0330.06720.37
5.5.350.0070.06020.41
5.5.340.0070.08318.02
5.5.330.0100.08320.21
5.5.320.0230.08320.36
5.5.310.0230.04720.27
5.5.300.0070.07718.08
5.5.290.0030.08018.07
5.5.280.0030.04020.96
5.5.270.0000.04320.86
5.5.260.0100.04020.97
5.5.250.0070.05720.47
5.5.240.0170.07320.27
5.4.450.0530.05719.57
5.4.440.0570.05719.57
5.4.430.0630.04319.32
5.4.420.0630.06019.56
5.4.410.0470.06019.15
5.4.400.0670.04318.98
5.4.390.0400.07019.01
5.4.380.0100.05319.32
5.4.370.0230.04019.24
5.4.360.0230.06318.84
5.4.350.0630.04319.00
5.4.340.0770.04718.93
5.4.320.0570.05019.21
5.4.310.0570.04719.30
5.4.300.0530.05319.29
5.4.290.0530.05019.23
5.4.280.0700.05019.16
5.4.270.0600.05319.24
5.4.260.0770.05719.13
5.4.250.0630.05319.12
5.4.240.0670.05018.94
5.4.230.0700.05319.30
5.4.220.0700.04719.13
5.4.210.0570.05319.23
5.4.200.0570.04719.05
5.4.190.0670.05719.13
5.4.180.0570.05719.24
5.4.170.0800.04319.26
5.4.160.0770.06319.09
5.4.150.0530.06018.98
5.4.140.0470.06016.55
5.4.130.0500.06016.32
5.4.120.0470.05716.38
5.4.110.0470.05316.42
5.4.100.0530.04716.21
5.4.90.0670.05716.61
5.4.80.0530.04716.18
5.4.70.0600.04016.50
5.4.60.0670.06016.63
5.4.50.0600.04316.58
5.4.40.0500.05316.24
5.4.30.0930.05716.40
5.4.20.0630.05716.39
5.4.10.0630.05316.25
5.4.00.0500.05016.08

preferences:
50.11 ms | 401 KiB | 5 Q