3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public $a = 1; public $b = 2; public $c = 3; } [$o, $t, $h] = array_values( get_object_vars( $f??new Foo() ) ); dump($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.0140.00716.63
8.3.50.0070.00716.23
8.3.40.0040.01118.74
8.3.30.0110.00418.74
8.3.20.0000.00720.33
8.3.10.0080.00023.71
8.3.00.0060.00323.65
8.2.180.0040.01518.67
8.2.170.0120.00322.96
8.2.160.0180.00719.45
8.2.150.0030.00524.18
8.2.140.0060.00324.66
8.2.130.0060.00322.25
8.2.120.0040.00426.35
8.2.110.0090.00020.39
8.2.100.0120.00017.97
8.2.90.0000.00919.01
8.2.80.0050.00319.34
8.2.70.0000.00817.63
8.2.60.0030.00618.05
8.2.50.0000.00818.22
8.2.40.0050.00320.32
8.2.30.0040.00419.24
8.2.20.0050.00318.09
8.2.10.0040.00417.94
8.2.00.0000.00718.09
8.1.280.0040.01125.92
8.1.270.0050.00223.83
8.1.260.0030.00526.35
8.1.250.0070.00028.09
8.1.240.0060.00323.92
8.1.230.0000.01020.28
8.1.220.0050.00317.76
8.1.210.0080.00018.77
8.1.200.0000.00917.35
8.1.190.0000.01017.22
8.1.180.0000.00818.10
8.1.170.0040.00418.49
8.1.160.0040.00418.86
8.1.150.0000.00720.04
8.1.140.0000.00719.03
8.1.130.0070.00018.79
8.1.120.0070.00017.45
8.1.110.0060.00317.38
8.1.100.0050.00317.36
8.1.90.0030.00517.38
8.1.80.0040.00417.29
8.1.70.0030.00317.29
8.1.60.0000.00717.48
8.1.50.0070.00617.54
8.1.40.0080.00017.40
8.1.30.0070.00317.59
8.1.20.0050.00217.63
8.1.10.0030.00617.48
8.1.00.0080.00017.55
8.0.300.0040.00418.77
8.0.290.0000.00716.75
8.0.280.0070.00018.31
8.0.270.0000.00717.21
8.0.260.0000.00618.75
8.0.250.0050.00316.96
8.0.240.0060.00016.96
8.0.230.0030.00316.82
8.0.220.0030.00316.86
8.0.210.0030.00516.78
8.0.200.0040.00416.91
8.0.190.0040.00416.84
8.0.180.0040.00416.97
8.0.170.0040.00416.89
8.0.160.0050.00216.88
8.0.150.0080.00016.84
8.0.140.0040.00416.86
8.0.130.0050.00013.32
8.0.120.0080.00016.75
8.0.110.0000.00716.79
8.0.100.0070.00016.83
8.0.90.0070.00017.01
8.0.80.0040.01216.84
8.0.70.0080.00016.92
8.0.60.0050.00316.98
8.0.50.0000.00816.87
8.0.30.0070.01117.18
8.0.20.0130.00717.40
8.0.10.0000.00717.04
8.0.00.0100.00716.78
7.4.330.0020.00216.66
7.4.320.0080.00016.37
7.4.300.0030.00316.50
7.4.290.0050.00316.59
7.4.280.0060.00316.41
7.4.270.0040.00416.64
7.4.260.0030.00516.49
7.4.250.0080.00016.55
7.4.240.0000.00916.49
7.4.230.0050.00216.42
7.4.220.0100.01716.54
7.4.210.0120.00616.52
7.4.200.0000.00716.48
7.4.160.0100.01016.38
7.4.150.0090.00917.40
7.4.140.0100.00817.86
7.4.130.0000.01616.48
7.4.120.0080.01316.47
7.4.110.0110.00716.66
7.4.100.0150.00716.52
7.4.90.0130.00916.52
7.4.80.0120.00819.39
7.4.70.0150.00616.60
7.4.60.0060.00916.53
7.4.50.0070.00716.47
7.4.40.0030.01416.39
7.4.30.0040.01216.39
7.4.00.0030.01014.83
7.3.330.0050.00013.43
7.3.320.0000.00613.24
7.3.310.0060.00016.29
7.3.300.0000.00616.46
7.3.290.0070.00716.41
7.3.280.0060.01516.43
7.3.270.0070.01017.40
7.3.260.0140.00716.40
7.3.250.0100.00716.37
7.3.240.0090.00916.44
7.3.230.0030.01616.35
7.3.210.0100.00716.53
7.3.200.0100.00716.60
7.3.190.0000.01616.21
7.3.180.0160.00316.21
7.3.170.0100.00716.46
7.3.160.0090.00616.27
7.3.10.0030.01416.47
7.3.00.0110.00715.85
7.2.330.0120.00916.73
7.2.320.0070.01416.30
7.2.310.0060.01516.75
7.2.300.0030.01316.53
7.2.290.0080.00816.57
7.2.130.0080.01216.78
7.2.120.0100.00716.75
7.2.110.0180.00016.62
7.2.100.0120.00416.49
7.2.90.0060.01516.55
7.2.80.0100.00516.62
7.2.70.0100.00716.87
7.2.60.0110.00716.50
7.2.50.0220.00716.50
7.2.40.0120.00916.74
7.2.30.0130.01316.55
7.2.20.0190.00316.37
7.2.10.0170.00716.29
7.2.00.0150.00616.83
7.1.250.0130.01015.86
7.1.200.0060.00615.61
7.1.110.0590.00316.16
7.1.100.1150.00716.35
7.1.90.0690.00315.77
7.1.80.0590.01016.23
7.1.70.0680.00315.29
7.1.60.0720.01032.92
7.1.50.0720.00932.69
7.1.40.0800.00332.53
7.1.30.0770.01332.73
7.1.20.0880.00932.48
7.1.10.0490.01614.84
7.1.00.0620.01114.77
7.0.250.0660.00315.91
7.0.240.0550.00715.99
7.0.230.0650.00615.02
7.0.220.0670.01315.74
7.0.210.0660.00314.30
7.0.200.0770.01014.63
7.0.190.0930.00314.38
7.0.180.0540.01014.21
7.0.170.0820.00314.04
7.0.160.0700.00914.19
7.0.150.0560.01114.01
7.0.140.0570.00714.13
7.0.130.0610.00614.52
7.0.120.0710.01114.64
7.0.110.0570.00714.30
7.0.100.0490.00314.36
7.0.90.0480.01014.28
7.0.80.0370.01514.24
7.0.70.0430.01014.24
7.0.60.0480.00314.11
7.0.50.0490.00614.41
7.0.40.0480.01114.66
7.0.30.0510.00614.64
7.0.20.0540.00314.35
7.0.10.0530.00914.36
7.0.00.0460.01014.46

preferences:
55.6 ms | 400 KiB | 5 Q