3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public int $uninitializedTyped; public $uninitialized; public int $initializedTyped = 0; public $ininitialized = 0; } $foo = new Foo(); var_dump(get_class_vars(get_class($foo))); var_dump(get_object_vars($foo));

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.140.0040.00416.60
8.3.130.0090.00018.12
8.3.120.0040.00418.80
8.3.110.0040.00420.94
8.3.100.0090.00024.06
8.3.90.0030.01426.77
8.3.80.0100.00018.31
8.3.70.0060.01318.08
8.3.60.0040.01116.63
8.3.50.0070.01119.88
8.3.40.0150.00618.54
8.3.30.0100.00619.20
8.3.20.0070.00024.18
8.3.10.0040.00424.66
8.3.00.0040.00426.16
8.2.250.0040.00416.68
8.2.240.0090.00018.92
8.2.230.0080.00022.58
8.2.220.0030.00837.54
8.2.210.0040.00426.77
8.2.200.0040.00418.41
8.2.190.0110.00316.58
8.2.180.0070.01025.92
8.2.170.0040.01122.96
8.2.160.0150.00022.96
8.2.150.0080.00025.66
8.2.140.0050.00324.66
8.2.130.0070.00026.16
8.2.120.0090.00318.69
8.2.110.0060.00321.18
8.2.100.0130.00017.66
8.2.90.0040.00419.34
8.2.80.0000.00820.52
8.2.70.0040.00417.50
8.2.60.0000.00817.91
8.2.50.0000.01017.93
8.2.40.0070.00018.16
8.2.30.0040.00418.17
8.2.20.0040.00420.41
8.2.10.0040.00417.90
8.2.00.0000.00719.11
8.1.300.0090.00918.26
8.1.290.0090.00030.84
8.1.280.0060.00925.92
8.1.270.0000.00823.83
8.1.260.0090.00026.35
8.1.250.0040.00428.09
8.1.240.0000.00822.05
8.1.230.0090.00322.72
8.1.220.0030.00617.74
8.1.210.0050.00318.91
8.1.200.0060.00317.10
8.1.190.0000.00817.10
8.1.180.0030.00618.10
8.1.170.0050.00317.62
8.1.160.0000.00818.82
8.1.150.0000.00718.53
8.1.140.0040.00417.40
8.1.130.0030.00317.44
8.1.120.0040.00417.33
8.1.110.0040.00417.29
8.1.100.0040.00417.38
8.1.90.0000.00717.39
8.1.80.0090.00017.39
8.1.70.0000.00717.38
8.1.60.0170.01217.33
8.1.50.0200.00417.39
8.1.40.0150.01117.44
8.1.30.0180.00917.52
8.1.20.0190.00617.46
8.1.10.0180.00617.49
8.1.00.0180.00617.36
8.0.300.0000.00720.16
8.0.290.0080.00016.75
8.0.280.0070.00018.29
8.0.270.0040.00316.75
8.0.260.0040.00416.71
8.0.250.0000.00816.92
8.0.240.0000.00716.93
8.0.230.0000.00716.85
8.0.220.0030.00316.70
8.0.210.0000.00716.75
8.0.200.0060.00016.76
8.0.190.0170.00416.88
8.0.180.0210.00016.75
8.0.170.0200.00016.79
8.0.160.0210.00316.87
8.0.150.0210.00416.65
8.0.140.0100.00916.64
8.0.130.0180.00316.61
8.0.120.0140.00616.82
8.0.110.0080.00816.80
8.0.100.0030.01416.79
8.0.90.0140.00016.75
8.0.80.0090.00316.63
8.0.70.0120.00016.64
8.0.60.0110.00316.62
8.0.50.0120.00216.64
8.0.30.0170.00016.73
8.0.20.0160.00416.82
8.0.10.0130.00316.82
7.4.330.0030.00315.55
7.4.320.0070.00016.43
7.4.300.0030.00316.54
7.4.290.0050.00216.55
7.4.280.0160.00716.40
7.4.270.0080.00416.32
7.4.260.0140.00016.11
7.4.250.0130.00316.43
7.4.240.0090.00216.33
7.4.230.0080.00416.16
7.4.220.0120.00516.46
7.4.210.0040.00816.32
7.4.200.0060.00616.19
7.4.190.0050.00816.30
7.4.180.0080.00416.51
7.4.160.0060.00616.60
7.4.150.0040.00816.40
7.4.140.0150.00716.34
7.4.130.0160.00616.36
7.4.120.0170.00316.26
7.4.110.0120.00616.27
7.4.100.0150.00416.46
7.4.90.0210.00016.25
7.4.80.0190.00016.38
7.4.70.0120.00616.43
7.4.60.0140.00616.20
7.4.50.0130.00516.12
7.4.40.0150.00916.34
7.4.30.0190.00016.36
7.4.20.0100.00716.17
7.4.10.0100.01116.23
7.4.00.0080.00416.41

preferences:
55.05 ms | 403 KiB | 5 Q