3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public string $foo, $bar; } $cf = new ReflectionClass(A::class); foreach ($cf->getProperties() as $prop) { printf("%s = %s\n", $prop->getName(), (string)$prop->getType()); }

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.01018.18
8.3.50.0130.00716.29
8.3.40.0150.00421.80
8.3.30.0120.00318.54
8.3.20.0040.00424.18
8.3.10.0000.00824.66
8.3.00.0040.00426.16
8.2.180.0140.00025.92
8.2.170.0100.00718.98
8.2.160.0030.01022.96
8.2.150.0000.00725.66
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0030.00526.35
8.2.110.0060.00320.80
8.2.100.0090.00317.91
8.2.90.0040.00417.75
8.2.80.0050.00318.79
8.2.70.0040.00417.63
8.2.60.0080.00017.50
8.2.50.0000.00918.05
8.2.40.0050.00319.65
8.2.30.0000.00717.93
8.2.20.0070.00018.00
8.2.10.0030.00519.32
8.2.00.0000.00819.31
8.1.280.0170.00325.92
8.1.270.0040.00723.99
8.1.260.0080.00028.09
8.1.250.0000.00828.09
8.1.240.0100.00019.43
8.1.230.0120.00020.97
8.1.220.0040.00418.55
8.1.210.0060.00318.77
8.1.200.0040.00417.35
8.1.190.0000.00817.23
8.1.180.0030.00518.10
8.1.170.0080.00018.59
8.1.160.0040.00418.85
8.1.150.0040.00418.76
8.1.140.0000.00820.63
8.1.130.0020.00517.50
8.1.120.0080.00017.46
8.1.110.0040.00417.48
8.1.100.0000.00717.48
8.1.90.0000.00817.38
8.1.80.0000.00717.46
8.1.70.0000.00717.49
8.1.60.0000.00817.57
8.1.50.0070.00017.46
8.1.40.0030.00617.51
8.1.30.0000.00817.65
8.1.20.0080.00017.54
8.1.10.0020.00517.40
8.1.00.0050.00217.48
8.0.300.0040.00418.77
8.0.290.0080.00016.61
8.0.280.0070.00018.36
8.0.270.0000.00818.02
8.0.260.0000.00716.74
8.0.250.0030.00316.99
8.0.240.0000.00616.89
8.0.230.0000.00716.96
8.0.220.0000.00716.83
8.0.210.0030.00316.93
8.0.200.0000.00716.94
8.0.190.0000.00716.88
8.0.180.0000.00716.93
8.0.170.0040.00416.95
8.0.160.0040.00416.91
8.0.150.0000.00716.84
8.0.140.0030.00616.81
8.0.130.0070.00013.41
8.0.120.0050.00316.88
8.0.110.0070.00016.71
8.0.100.0000.00816.78
8.0.90.0040.00416.95
8.0.80.0070.00816.84
8.0.70.0000.00816.78
8.0.60.0020.00517.00
8.0.50.0040.00416.88
8.0.30.0000.01617.04
8.0.20.0120.00717.04
8.0.10.0030.00316.88
8.0.00.0120.00616.78
7.4.330.0000.00515.55
7.4.320.0030.00316.45
7.4.300.0000.00616.44
7.4.290.0050.00316.49
7.4.280.0000.00716.41
7.4.270.0030.00316.50
7.4.260.0000.00513.26
7.4.250.0040.00416.32
7.4.240.0040.00416.61
7.4.230.0030.00316.65
7.4.220.0030.00316.69
7.4.210.0080.00816.51
7.4.200.0030.00316.40
7.4.130.0110.00916.52
7.4.120.0040.01216.43
7.4.110.0090.00616.58
7.4.100.0110.01116.63
7.4.90.0100.01316.62
7.4.80.0060.01016.61
7.4.70.0170.00716.58
7.4.60.0030.01416.62
7.4.50.0090.00916.46
7.4.40.0120.00616.62
7.4.30.0090.00916.57
7.4.20.0140.00416.42
7.4.10.0070.01016.52
7.4.00.0090.00916.41
7.3.330.0050.00516.17
7.3.320.0000.00613.11
7.3.310.0050.00316.15
7.3.300.0060.00016.16
7.3.290.0090.00916.17
7.3.260.0120.01416.39
7.3.240.0100.00616.14
7.3.230.0090.00616.43
7.3.220.0130.00316.27
7.3.210.0060.01216.19
7.3.200.0100.00716.15
7.3.190.0110.01116.37
7.3.180.0080.00816.21
7.3.170.0030.01416.25
7.3.160.0040.01316.05
7.3.150.0030.01416.21
7.3.140.0090.00916.11
7.3.130.0130.00416.14
7.3.120.0090.00616.25
7.3.110.0060.01016.28
7.3.100.0120.00416.27
7.3.90.0190.00016.16
7.3.80.0100.01316.09
7.3.70.0130.01416.18
7.3.60.0100.01016.23
7.3.50.0110.00716.11
7.3.40.0030.01316.17
7.3.30.0030.02016.18
7.3.20.0070.01016.23
7.3.10.0260.01016.37
7.3.00.0130.00316.08
7.2.340.0100.00716.20
7.2.330.0100.00716.56
7.2.320.0060.01016.07
7.2.310.0140.00316.40
7.2.300.0090.00916.39
7.2.290.0090.00916.46
7.2.280.0100.00716.47
7.2.270.0030.01416.25
7.2.260.0090.00916.04
7.2.250.0120.00616.38
7.2.240.0100.00716.24
7.2.230.0120.00916.16
7.2.220.0110.00816.43
7.2.210.0100.01716.33
7.2.200.0160.00916.47
7.2.190.0050.01516.52
7.2.180.0140.00316.12
7.2.170.0070.01016.41
7.2.160.0060.01216.45
7.2.150.0090.00916.34
7.2.140.0040.01416.39
7.2.130.0060.01216.23
7.2.120.0150.00316.22
7.2.110.0140.00716.30
7.2.100.0090.00916.37
7.2.90.0120.00616.28
7.2.80.0160.00616.27
7.2.70.0060.01216.41
7.2.60.0160.00316.46
7.2.50.0110.00816.63
7.2.40.0190.00316.24
7.2.30.0170.00916.38
7.2.20.0130.01016.19
7.2.10.0120.01316.37
7.2.00.0240.00316.37

preferences:
62.45 ms | 400 KiB | 5 Q