3v4l.org

run code in 300+ PHP versions simultaneously
<?php class User { public int $id = 0; public string $code; public string $name; public function __construct() { $reflect = new ReflectionClass($this); $props = $reflect->getProperties(); foreach ($props as $prop) { echo $prop->getType()->getName(), "\n"; } } } new User();

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.5.00.0130.00820.05
8.4.150.0020.00014.05
8.4.140.0120.00917.45
8.4.130.0090.01217.64
8.4.120.0110.00924.10
8.4.110.0130.00618.63
8.4.100.0070.00218.78
8.4.90.0090.01322.13
8.4.80.0040.00718.99
8.4.70.0110.01018.61
8.4.60.0100.01118.91
8.4.50.0130.00617.97
8.4.40.0060.00917.73
8.4.30.0160.00320.21
8.4.20.0140.00719.64
8.4.10.0060.01317.65
8.3.280.0140.00818.30
8.3.270.0120.00816.59
8.3.260.0140.00616.61
8.3.250.0100.00916.67
8.3.240.0040.00617.05
8.3.230.0060.00416.80
8.3.220.0140.00318.91
8.3.210.0060.00316.74
8.3.200.0130.00716.16
8.3.190.0070.00816.75
8.3.180.0060.00316.36
8.3.170.0130.00616.39
8.3.160.0080.00020.02
8.3.150.0000.00918.39
8.3.140.0100.00618.98
8.3.130.0040.00416.48
8.3.120.0050.00518.80
8.3.110.0060.00320.94
8.3.100.0060.00324.06
8.3.90.0100.00026.77
8.3.80.0030.00616.50
8.3.70.0150.00618.43
8.3.60.0070.01416.50
8.3.50.0150.00417.93
8.3.40.0070.01119.07
8.3.30.0090.00618.63
8.3.20.0000.00724.18
8.3.10.0040.00424.66
8.3.00.0000.00726.16
8.2.290.0060.00420.48
8.2.280.0140.00518.38
8.2.270.0150.00418.89
8.2.260.0100.01016.52
8.2.250.0040.00418.44
8.2.240.0060.00919.08
8.2.230.0030.00622.58
8.2.220.0030.00737.54
8.2.210.0040.00426.77
8.2.200.0040.00416.50
8.2.190.0060.00916.58
8.2.180.0140.00325.92
8.2.170.0070.00722.96
8.2.160.0060.00922.96
8.2.150.0040.00425.66
8.2.140.0030.00524.66
8.2.130.0070.00026.16
8.2.120.0000.00819.36
8.2.110.0060.00322.04
8.2.100.0120.00017.78
8.2.90.0050.00517.75
8.2.80.0000.00819.07
8.2.70.0060.00317.48
8.2.60.0000.00917.50
8.2.50.0040.00417.98
8.2.40.0080.00417.81
8.2.30.0040.00417.73
8.2.20.0030.00319.32
8.2.10.0030.00518.75
8.2.00.0070.00019.31
8.1.330.0110.00721.93
8.1.320.0110.01017.84
8.1.310.0030.00518.48
8.1.300.0030.01317.91
8.1.290.0050.00518.88
8.1.280.0030.01325.92
8.1.270.0000.00823.99
8.1.260.0060.00326.35
8.1.250.0030.00728.09
8.1.240.0000.00923.80
8.1.230.0080.00319.03
8.1.220.0060.00317.74
8.1.210.0000.00818.77
8.1.200.0060.00317.22
8.1.190.0080.00017.25
8.1.180.0040.00418.10
8.1.170.0030.00617.62
8.1.160.0040.00418.90
8.1.150.0060.00318.54
8.1.140.0000.00717.50
8.1.130.0000.00718.82
8.1.120.0040.00417.50
8.1.110.0040.00417.36
8.1.100.0030.00517.42
8.1.90.0000.00717.50
8.1.80.0050.00317.40
8.1.70.0030.00317.37
8.1.60.0060.00317.57
8.1.50.0070.00017.41
8.1.40.0000.00817.40
8.1.30.0080.00417.64
8.1.20.0030.00517.54
8.1.10.0090.00017.55
8.1.00.0080.00017.46
8.0.300.0070.00019.65
8.0.290.0060.00316.62
8.0.280.0030.00318.35
8.0.270.0050.00216.82
8.0.260.0000.00618.46
8.0.250.0030.00316.95
8.0.240.0050.00216.97
8.0.230.0000.00716.95
8.0.220.0000.01016.93
8.0.210.0030.00316.86
8.0.200.0040.00416.96
8.0.190.0050.00316.99
8.0.180.0060.00316.95
8.0.170.0030.00516.84
8.0.160.0060.00316.78
8.0.150.0030.00416.83
8.0.140.0040.00416.85
8.0.130.0050.00013.24
8.0.120.0040.00416.89
8.0.110.0040.00416.75
8.0.100.0000.00716.96
8.0.90.0000.00716.88
8.0.80.0040.00416.82
8.0.70.0070.00016.74
8.0.60.0080.00016.86
8.0.50.0000.00816.80
8.0.30.0000.00816.86
8.0.20.0040.00416.85
8.0.10.0080.00017.02
8.0.00.0040.00417.00
7.4.330.0060.00015.55
7.4.320.0040.00316.62
7.4.300.0030.00316.58
7.4.290.0000.00916.55
7.4.280.0040.00416.51
7.4.270.0030.00316.50
7.4.260.0000.00513.26
7.4.250.0070.00016.47
7.4.240.0080.00016.43
7.4.230.0000.00716.52
7.4.220.0070.00016.57
7.4.210.0070.00016.62
7.4.200.0080.00016.63
7.4.190.0050.00316.57
7.4.180.0030.00316.52
7.4.160.0080.00016.63
7.4.150.0000.00716.38
7.4.140.0040.00416.39
7.4.130.0070.00016.47
7.4.120.0020.00516.58
7.4.110.0040.00416.37
7.4.100.0040.00416.61
7.4.90.0030.00516.53
7.4.80.0030.00616.41
7.4.70.0000.00816.52
7.4.60.0000.00816.49
7.4.50.0030.00616.26
7.4.40.0040.00416.39
7.4.30.0050.00316.53
7.4.20.0000.00816.39
7.4.10.0080.00016.37
7.4.00.0040.00416.54
7.3.330.0030.00316.15
7.3.320.0000.00513.23
7.3.310.0030.00616.28
7.3.300.0050.00316.21
7.3.290.0060.00316.24
7.3.280.0030.00516.23
7.3.270.0000.00716.30
7.3.260.0030.00316.23
7.3.250.0000.00816.08
7.3.240.0000.00816.08
7.3.230.0030.00516.21
7.3.220.0040.00416.15
7.3.210.0040.00416.04
7.3.200.0040.00416.02
7.3.190.0040.00416.13
7.3.180.0080.00016.28
7.3.170.0030.00516.24
7.3.160.0040.00416.17
7.3.150.0070.00016.07
7.3.140.0030.00516.11
7.3.130.0030.00316.07
7.3.120.0050.00316.07
7.3.110.0050.00316.09
7.3.100.0000.00815.96
7.3.90.0070.00016.33
7.3.80.0050.00315.98
7.3.70.0000.00716.14
7.3.60.0000.00816.29
7.3.50.0060.00316.13
7.3.40.0040.00416.26
7.3.30.0030.00516.06
7.3.20.0080.00018.15
7.3.10.0080.00018.00
7.3.00.0000.00918.05

preferences:
43.16 ms | 403 KiB | 5 Q