3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A extends ArrayObject { public $a=1; public $b=true; public $c=2.0; public function getIterator(){ return new ArrayIterator(get_object_vars($this)); } } function test($a, $b, $c) { var_dump(func_get_args()); } $a = new A; test(...$a);

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.0100.00716.50
8.3.50.0100.00521.98
8.3.40.0100.00718.67
8.3.30.0090.00618.84
8.3.20.0110.00720.16
8.3.10.0110.00723.57
8.3.00.0000.00919.04
8.2.180.0150.00418.54
8.2.170.0110.00422.96
8.2.160.0030.01020.47
8.2.150.0110.00424.18
8.2.140.0080.00024.66
8.2.130.0110.00726.16
8.2.120.0080.00821.98
8.2.110.0070.00420.43
8.2.100.0070.00417.91
8.2.90.0000.00819.27
8.2.80.0040.00417.97
8.2.70.0080.00017.50
8.2.60.0030.00618.04
8.2.50.0080.00018.10
8.2.40.0050.00319.95
8.2.30.0070.00019.85
8.2.20.0070.00017.56
8.2.10.0040.00418.05
8.2.00.0030.00617.54
8.1.280.0110.00725.92
8.1.270.0090.00023.96
8.1.260.0140.00426.35
8.1.250.0000.00828.09
8.1.240.0030.00622.80
8.1.230.0080.00417.76
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0000.01017.23
8.1.190.0040.00417.35
8.1.180.0040.00418.10
8.1.170.0060.00318.46
8.1.160.0040.00422.04
8.1.150.0000.00718.54
8.1.140.0040.00417.46
8.1.130.0040.00417.81
8.1.120.0070.00017.45
8.1.110.0030.00517.44
8.1.100.0000.00817.46
8.1.90.0070.00017.41
8.1.80.0030.00717.50
8.1.70.0000.00717.42
8.1.60.0040.00417.58
8.1.50.0000.00817.56
8.1.40.0000.00717.40
8.1.30.0000.00817.64
8.1.20.0040.00417.66
8.1.10.0070.00017.50
8.1.00.0040.00417.46
8.0.300.0080.00018.77
8.0.290.0040.00416.75
8.0.280.0030.00318.45
8.0.270.0070.00017.19
8.0.260.0030.00317.27
8.0.250.0050.00316.92
8.0.240.0000.00716.95
8.0.230.0000.00716.92
8.0.220.0000.00616.79
8.0.210.0040.00416.89
8.0.200.0000.00716.94
8.0.190.0030.00516.91
8.0.180.0000.00716.89
8.0.170.0000.00716.89
8.0.160.0040.00416.86
8.0.150.0040.00416.83
8.0.140.0000.00716.88
8.0.130.0000.00713.32
8.0.120.0040.00416.91
8.0.110.0030.00516.92
8.0.100.0000.00716.69
8.0.90.0050.00216.80
8.0.80.0120.00916.89
8.0.70.0040.00416.92
8.0.60.0080.00017.01
8.0.50.0040.00416.69
8.0.30.0090.00917.12
8.0.20.0130.00617.40
8.0.10.0040.00417.04
8.0.00.0070.01216.89
7.4.330.0030.00315.00
7.4.320.0040.00416.45
7.4.300.0060.00016.57
7.4.290.0000.00716.62
7.4.280.0030.00316.61
7.4.270.0030.00316.52
7.4.260.0000.00716.47
7.4.250.0030.00516.57
7.4.240.0020.00516.56
7.4.230.0030.00316.62
7.4.220.0070.01016.53
7.4.210.0060.01016.56
7.4.200.0040.00416.61
7.4.190.0050.00316.55
7.4.160.0030.01316.52
7.4.150.0130.00617.40
7.4.140.0160.01017.86
7.4.130.0090.00716.48
7.4.120.0120.00516.60
7.4.110.0070.01116.50
7.4.100.0070.01016.48
7.4.90.0050.01116.54
7.4.80.0100.00719.39
7.4.70.0000.02116.53
7.4.60.0100.00716.36
7.4.50.0050.00316.22
7.4.40.0000.01222.77
7.4.30.0070.01016.55
7.4.00.0030.01214.68
7.3.330.0000.00513.39
7.3.320.0000.00613.32
7.3.310.0030.00316.26
7.3.300.0040.00416.38
7.3.290.0070.00716.43
7.3.280.0080.01316.37
7.3.270.0070.01017.40
7.3.260.0060.01216.29
7.3.250.0110.00716.50
7.3.240.0120.01216.32
7.3.230.0060.01016.54
7.3.210.0100.01016.59
7.3.200.0130.00619.39
7.3.190.0060.01216.56
7.3.180.0080.00816.25
7.3.170.0030.01316.59
7.3.160.0050.01116.52
7.3.120.0100.00314.67
7.3.110.0040.00715.04
7.3.100.0080.00414.72
7.3.90.0000.01314.68
7.3.80.0060.00915.13
7.3.70.0100.00314.79
7.3.60.0070.01014.59
7.3.50.0030.01014.62
7.3.40.0080.00614.81
7.3.30.0000.01614.92
7.3.20.0030.00716.68
7.3.10.0120.00516.54
7.3.00.0120.00816.30
7.2.330.0090.01216.61
7.2.320.0080.00816.66
7.2.310.0160.00616.45
7.2.300.0060.00916.53
7.2.290.0100.01016.74
7.2.240.0070.00714.63
7.2.230.0030.01014.70
7.2.220.0070.00714.61
7.2.210.0060.00614.68
7.2.200.0030.01314.97
7.2.190.0070.01115.01
7.2.180.0000.01814.91
7.2.170.0060.00615.06
7.2.160.0060.00614.85
7.2.150.0070.01016.69
7.2.140.0070.01116.89
7.2.130.0050.01216.76
7.2.120.0110.00616.72
7.2.110.0010.01416.56
7.2.100.0060.00916.83
7.2.90.0090.00616.62
7.2.80.0040.01316.52
7.2.70.0100.00916.78
7.2.60.0100.00616.78
7.2.50.0080.01016.81
7.2.40.0120.00516.61
7.2.30.0090.00816.50
7.2.20.0140.00316.71
7.2.10.0080.01216.81
7.2.00.0070.01217.52
7.1.330.0100.00615.95
7.1.320.0110.00715.61
7.1.310.0030.01215.63
7.1.300.0000.01015.55
7.1.290.0100.00715.74
7.1.280.0070.00715.72
7.1.270.0030.01315.63
7.1.260.0030.00615.65
7.1.250.0090.00515.60
7.1.200.0150.00415.55
7.1.100.0030.00618.05
7.1.70.0000.00917.21
7.1.60.0090.01619.46
7.1.50.0160.01034.91
7.1.00.0070.07322.43
7.0.200.0030.00716.75
7.0.140.0030.07322.18
7.0.60.0130.05319.96
7.0.50.0070.07717.87
7.0.40.0100.07020.18
7.0.30.0300.07720.11
7.0.20.0300.04720.16
7.0.10.0130.07720.30
7.0.00.0070.08020.23
5.6.280.0000.07721.11
5.6.210.0200.07320.73
5.6.200.0200.06718.29
5.6.190.0100.05020.47
5.6.180.0070.05020.63
5.6.170.0300.06020.58
5.6.160.0130.08320.71
5.6.150.0070.08318.27
5.6.140.0130.06718.18
5.6.130.0130.07318.18
5.6.120.0030.04320.95
5.6.110.0100.08021.04
5.6.100.0070.05021.02
5.6.90.0000.06720.95
5.6.80.0130.04320.42
5.6.70.4700.03020.29
5.5.350.0270.05320.38
5.5.340.0000.04018.02
5.5.330.0130.05320.42
5.5.320.0030.05720.33
5.5.310.0270.06020.32
5.5.300.0030.04017.98
5.5.290.0100.07317.93
5.5.280.0100.08020.89
5.5.270.0130.03720.68
5.5.260.0070.08020.88
5.5.250.0170.07720.72
5.5.240.0270.04720.05
5.4.450.0570.07019.49
5.4.440.0630.06019.38
5.4.430.0470.06319.45
5.4.420.0570.05719.16
5.4.410.0570.06019.06
5.4.400.0800.05719.30
5.4.390.0830.05319.24
5.4.380.0270.05018.75
5.4.370.0270.05718.80
5.4.360.0270.05718.59
5.4.350.0300.07018.74
5.4.340.0300.05018.54
5.4.320.0050.04012.52
5.4.310.0080.03512.53
5.4.300.0070.03712.53
5.4.290.0080.03912.51
5.4.280.0090.04612.41
5.4.270.0330.08912.40
5.4.260.0090.04912.41
5.4.250.0140.05112.41
5.4.240.0130.05812.40
5.4.230.0080.05612.40
5.4.220.0120.07212.39
5.4.210.0100.05012.39
5.4.200.0140.07012.40
5.4.190.0060.06512.39
5.4.180.0130.07012.39
5.4.170.0170.05012.40
5.4.160.0120.07012.39
5.4.150.0080.05712.39
5.4.140.0090.04512.08
5.4.130.0200.07912.06
5.4.120.0060.04112.03
5.4.110.0070.04012.02
5.4.100.0100.04312.02
5.4.90.0080.04912.02
5.4.80.0140.05012.02
5.4.70.0200.07912.02
5.4.60.0140.06912.02
5.4.50.0160.05812.02
5.4.40.0120.08512.01
5.4.30.0220.07612.00
5.4.20.0170.07312.00
5.4.10.0090.06712.00
5.4.00.0050.06811.49
5.3.290.0050.04512.80
5.3.280.0110.07412.71
5.3.270.0150.07912.72
5.3.260.0090.09012.71
5.3.250.0140.08212.72
5.3.240.0090.08312.71
5.3.230.0160.11212.71
5.3.220.0120.07112.68
5.3.210.0130.08812.68
5.3.200.0150.08412.68
5.3.190.0110.06312.68
5.3.180.0090.07312.67
5.3.170.0120.07912.67
5.3.160.0090.05912.67
5.3.150.0180.08012.67
5.3.140.0130.08712.66
5.3.130.0090.08512.66
5.3.120.0170.07412.66
5.3.110.0090.07312.66
5.3.100.0200.08612.13
5.3.90.0210.09812.11
5.3.80.0090.05512.11
5.3.70.0160.07112.11
5.3.60.0110.08412.09
5.3.50.0060.06712.03
5.3.40.0060.05712.03
5.3.30.0130.07311.99
5.3.20.0140.07311.78
5.3.10.0070.09111.74
5.3.00.0090.03811.73
5.2.170.0080.0319.23
5.2.160.0170.0549.23
5.2.150.0080.0449.23
5.2.140.0160.0569.22
5.2.130.0180.0539.18
5.2.120.0100.0639.19
5.2.110.0040.0329.19
5.2.100.0070.0299.19
5.2.90.0110.0489.19
5.2.80.0060.0619.18
5.2.70.0090.0659.18
5.2.60.0170.0849.14
5.2.50.0070.0749.11
5.2.40.0070.0689.09
5.2.30.0090.0679.06
5.2.20.0180.0959.05
5.2.10.0140.0688.96
5.2.00.0120.0648.82
5.1.60.0130.0498.10
5.1.50.0070.0648.09
5.1.40.0110.0568.08
5.1.30.0090.0598.43
5.1.20.0060.0398.45
5.1.10.0040.0388.18
5.1.00.0070.0328.18
5.0.50.0120.0376.65
5.0.40.0060.0206.51
5.0.30.0020.0346.32
5.0.20.0040.0256.31
5.0.10.0160.0916.29
5.0.00.0060.0426.29
4.4.90.0060.0384.78
4.4.80.0090.0424.75
4.4.70.0050.0254.75
4.4.60.0120.0464.76
4.4.50.0120.0364.77
4.4.40.0150.0554.71
4.4.30.0070.0174.76
4.4.20.0030.0224.84
4.4.10.0030.0234.85
4.4.00.0080.0304.76
4.3.110.0070.0224.67
4.3.100.0060.0334.66
4.3.90.0030.0194.63
4.3.80.0030.0294.59
4.3.70.0060.0154.63
4.3.60.0050.0204.63
4.3.50.0040.0184.63
4.3.40.0020.0364.54
4.3.30.0030.0193.30
4.3.20.0050.0223.28
4.3.10.0020.0183.24
4.3.00.0200.01310.54

preferences:
46.84 ms | 401 KiB | 5 Q