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() ) ); var_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.50
8.3.50.0100.00316.17
8.3.40.0000.01518.77
8.3.30.0040.01118.67
8.3.20.0040.00420.36
8.3.10.0080.00023.62
8.3.00.0040.00423.48
8.2.180.0130.00918.29
8.2.170.0110.00422.96
8.2.160.0150.00319.51
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00422.26
8.2.120.0080.00026.35
8.2.110.0050.00519.30
8.2.100.0090.00318.03
8.2.90.0080.00019.70
8.2.80.0030.00718.05
8.2.70.0060.00317.79
8.2.60.0040.00418.16
8.2.50.0060.00318.10
8.2.40.0090.00020.60
8.2.30.0000.00719.34
8.2.20.0020.00518.20
8.2.10.0040.00417.99
8.2.00.0040.00417.96
8.1.280.0110.00425.92
8.1.270.0080.00023.96
8.1.260.0080.00026.35
8.1.250.0060.00328.09
8.1.240.0070.00421.86
8.1.230.0040.00720.98
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0060.00317.23
8.1.190.0060.00317.11
8.1.180.0000.00818.10
8.1.170.0040.00418.55
8.1.160.0000.00718.86
8.1.150.0040.00419.95
8.1.140.0080.00019.07
8.1.130.0030.00318.82
8.1.120.0050.00217.40
8.1.110.0000.01117.39
8.1.100.0040.00417.43
8.1.90.0060.00317.29
8.1.80.0000.00717.29
8.1.70.0040.00417.38
8.1.60.0040.00417.50
8.1.50.0030.01017.38
8.1.40.0050.00317.50
8.1.30.0030.00617.63
8.1.20.0070.00017.59
8.1.10.0040.00417.53
8.1.00.0000.00917.55
8.0.300.0050.00221.58
8.0.290.0040.00416.75
8.0.280.0070.00018.31
8.0.270.0040.00417.23
8.0.260.0030.00318.69
8.0.250.0030.00316.85
8.0.240.0070.00016.95
8.0.230.0000.00816.83
8.0.220.0030.00316.90
8.0.210.0070.00016.87
8.0.200.0070.00016.96
8.0.190.0040.00416.90
8.0.180.0000.00716.81
8.0.170.0050.00216.92
8.0.160.0050.00316.82
8.0.150.0040.00416.78
8.0.140.0000.00816.85
8.0.130.0030.00313.25
8.0.120.0030.00516.85
8.0.110.0040.00416.76
8.0.100.0080.00016.95
8.0.90.0000.00716.70
8.0.80.0040.01116.84
8.0.70.0080.00016.82
8.0.60.0060.00316.82
8.0.50.0000.00816.75
8.0.30.0070.01117.00
8.0.20.0130.00617.40
8.0.10.0070.00016.94
8.0.00.0110.00716.67
7.4.330.0000.00516.77
7.4.320.0000.00716.39
7.4.300.0000.00616.43
7.4.290.0030.00316.55
7.4.280.0040.00416.41
7.4.270.0020.00516.46
7.4.260.0040.00416.42
7.4.250.0040.00416.32
7.4.240.0030.00316.30
7.4.230.0030.00316.48
7.4.220.0160.01016.42
7.4.210.0070.00716.47
7.4.200.0000.00716.23
7.4.160.0140.00516.44
7.4.150.0110.00617.40
7.4.140.0080.00917.86
7.4.130.0140.00416.49
7.4.120.0090.01016.53
7.4.110.0070.01116.54
7.4.100.0100.00716.50
7.4.90.0150.00316.45
7.4.80.0070.01019.39
7.4.70.0110.01116.63
7.4.60.0100.00616.51
7.4.50.0030.01116.43
7.4.40.0120.00616.50
7.4.30.0120.00416.39
7.4.00.0050.01215.02
7.3.330.0030.00313.34
7.3.320.0050.00013.25
7.3.310.0030.00316.32
7.3.300.0030.00316.20
7.3.290.0030.01116.34
7.3.280.0110.00816.31
7.3.270.0130.00317.40
7.3.260.0080.00916.39
7.3.250.0080.01216.46
7.3.240.0100.00816.36
7.3.230.0100.00716.56
7.3.210.0100.00716.55
7.3.200.0150.00716.32
7.3.190.0060.01116.57
7.3.180.0030.01216.24
7.3.170.0170.00016.43
7.3.160.0090.00616.57
7.3.120.0070.01314.81
7.3.110.0070.01114.71
7.3.100.0130.00014.84
7.3.90.0090.00614.79
7.3.80.0110.00414.82
7.3.70.0040.00814.76
7.3.60.0000.01114.84
7.3.50.0060.00914.93
7.3.40.0090.00314.75
7.3.30.0030.00614.69
7.3.20.0060.00916.71
7.3.10.0040.00816.21
7.3.00.0080.00416.34
7.2.330.0130.00416.68
7.2.320.0130.00316.66
7.2.310.0070.01016.66
7.2.300.0110.00716.71
7.2.290.0160.00516.43
7.2.250.0070.01114.84
7.2.240.0100.01014.48
7.2.230.0030.00914.85
7.2.220.0030.01314.85
7.2.210.0000.01514.87
7.2.200.0070.00715.07
7.2.190.0030.01315.04
7.2.180.0070.00415.02
7.2.170.0040.01114.83
7.2.60.0070.00316.73
7.1.330.0100.00315.64
7.1.320.0130.00315.69
7.1.310.0110.00415.59
7.1.300.0060.00615.63
7.1.290.0120.00315.62
7.1.280.0040.00415.53
7.1.270.0030.01015.73
7.1.260.0080.00815.45
7.1.200.0120.00315.68
7.1.110.0860.02015.99
7.1.100.0600.01015.92
7.1.90.1140.00316.08
7.1.80.0620.00316.06
7.1.70.0620.00715.14
7.1.60.0930.01733.31
7.1.50.0960.00732.58
7.1.40.0810.00432.21
7.1.30.1140.01332.56
7.1.20.0790.01032.54
7.1.10.0780.01014.59
7.1.00.0670.01314.97
7.0.250.0830.01615.51
7.0.240.0590.00715.46
7.0.230.0710.00915.27
7.0.220.0680.00615.59
7.0.210.0610.00714.45
7.0.200.1170.01014.88
7.0.190.1240.00414.38
7.0.180.0700.00614.22
7.0.170.0910.00614.07
7.0.160.0910.00714.07
7.0.150.1010.01014.08
7.0.140.0900.01314.14
7.0.130.1020.01014.45
7.0.120.0880.00314.50
7.0.110.0870.01414.32
7.0.100.0920.00314.45
7.0.90.1000.01614.29
7.0.80.0610.01614.22
7.0.70.0610.00714.18
7.0.60.1340.01314.18
7.0.50.0620.01314.56
7.0.40.0670.01314.47
7.0.30.1000.00614.49
7.0.20.0930.01214.45
7.0.10.1160.01014.31
7.0.00.1430.00714.32

preferences:
60.86 ms | 400 KiB | 5 Q