3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Person { } $array = [ 'name' => 'John', 'username' => 'JohnDoe23', 'is_active' => true ]; $reflection = new ReflectionClass('Person'); foreach($array as $key => $value) { $reflection->getProperty($key)->setProperty($value); } var_dump($reflection);

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.0000.01516.63
8.3.50.0130.00721.12
8.3.40.0120.00318.79
8.3.30.0120.00318.84
8.3.20.0080.00020.13
8.3.10.0040.01123.60
8.3.00.0080.00019.66
8.2.180.0090.00918.05
8.2.170.0070.00722.96
8.2.160.0030.01019.41
8.2.150.0000.00824.18
8.2.140.0090.00024.66
8.2.130.0080.00026.16
8.2.120.0040.00417.75
8.2.110.0060.00321.00
8.2.100.0110.00019.40
8.2.90.0090.00018.03
8.2.80.0040.00420.20
8.2.70.0000.00817.63
8.2.60.0030.00617.92
8.2.50.0050.00318.07
8.2.40.0030.00519.28
8.2.30.0050.00320.62
8.2.20.0020.00517.69
8.2.10.0040.00418.15
8.2.00.0000.00818.03
8.1.280.0080.00825.92
8.1.270.0030.00623.70
8.1.260.0000.00826.35
8.1.250.0000.00728.09
8.1.240.0030.00622.05
8.1.230.0110.00022.49
8.1.220.0040.00417.74
8.1.210.0080.00018.88
8.1.200.0060.00317.47
8.1.190.0040.00417.25
8.1.180.0030.00518.10
8.1.170.0040.00418.39
8.1.160.0070.00021.99
8.1.150.0000.00718.86
8.1.140.0000.00919.15
8.1.130.0000.00717.67
8.1.120.0030.00317.44
8.1.110.0030.00917.44
8.1.100.0080.00017.52
8.1.90.0000.00717.37
8.1.80.0040.00417.34
8.1.70.0050.00217.47
8.1.60.0050.00217.68
8.1.50.0030.00517.46
8.1.40.0030.00617.42
8.1.30.0040.00417.57
8.1.20.0000.00817.62
8.1.10.0050.00317.55
8.1.00.0030.00617.53
8.0.300.0040.00420.14
8.0.290.0040.00416.88
8.0.280.0030.00318.36
8.0.270.0030.00317.27
8.0.260.0030.00317.28
8.0.250.0000.00717.03
8.0.240.0040.00417.03
8.0.230.0080.00016.91
8.0.220.0000.00716.94
8.0.210.0050.00316.83
8.0.200.0060.00016.97
8.0.190.0000.01017.03
8.0.180.0000.00817.02
8.0.170.0040.00417.02
8.0.160.0000.00716.89
8.0.150.0080.00016.91
8.0.140.0000.00716.96
8.0.130.0040.00413.35
8.0.120.0080.00016.96
8.0.110.0050.00316.96
8.0.100.0000.00816.93
8.0.90.0030.00516.85
8.0.80.0120.00916.95
8.0.70.0040.00416.94
8.0.60.0030.00316.91
8.0.50.0040.00416.98
8.0.30.0140.00617.08
8.0.20.0080.01117.40
8.0.10.0070.00016.87
8.0.00.0100.00816.86
7.4.330.0050.00015.08
7.4.320.0030.00316.66
7.4.300.0000.00716.56
7.4.290.0030.00316.44
7.4.280.0050.00516.45
7.4.270.0050.00316.48
7.4.260.0000.00816.60
7.4.250.0040.00416.56
7.4.240.0040.00316.54
7.4.230.0040.00416.35
7.4.220.0130.00716.56
7.4.210.0060.00916.55
7.4.200.0000.00716.41
7.4.160.0090.00616.61
7.4.150.0080.00917.40
7.4.140.0080.01217.86
7.4.130.0110.01116.37
7.4.120.0130.00516.60
7.4.110.0100.01116.53
7.4.100.0060.01216.61
7.4.90.0160.00616.61
7.4.80.0150.00319.39
7.4.70.0060.01616.57
7.4.60.0070.01016.58
7.4.50.0000.00816.59
7.4.40.0140.01116.22
7.4.30.0160.00816.55
7.4.00.0070.00715.01
7.3.330.0000.00613.09
7.3.320.0040.00413.36
7.3.310.0030.00316.18
7.3.300.0070.00016.38
7.3.290.0080.00816.30
7.3.280.0050.01316.34
7.3.270.0090.00917.40
7.3.260.0090.00916.64
7.3.250.0100.00916.54
7.3.240.0120.00916.35
7.3.230.0110.00716.42
7.3.210.0140.00316.54
7.3.200.0110.00516.32
7.3.190.0060.01216.46
7.3.180.0110.00416.43
7.3.170.0030.01316.36
7.3.160.0110.00516.33
7.3.120.0000.01614.84
7.3.110.0120.00014.84
7.3.100.0070.01014.84
7.3.90.0070.01014.81
7.3.80.0060.00314.84
7.3.70.0040.00814.90
7.3.60.0040.01114.98
7.3.50.0090.00614.69
7.3.40.0030.00614.90
7.3.30.0120.00314.96
7.3.20.0060.00616.76
7.3.10.0090.00316.64
7.3.00.0060.00616.82
7.2.330.0060.01216.54
7.2.320.0030.01616.68
7.2.310.0060.01216.48
7.2.300.0070.01116.64
7.2.290.0140.01116.66
7.2.240.0000.01415.05
7.2.230.0030.00614.97
7.2.220.0060.00915.35
7.2.210.0060.00915.27
7.2.200.0030.01415.14
7.2.190.0070.01015.18
7.2.180.0070.01015.08
7.2.170.0030.00715.20
7.2.160.0060.00814.98
7.2.150.0070.00716.89
7.2.140.0030.01417.04
7.2.130.0070.00716.70
7.2.120.0030.01416.75
7.2.110.0070.00716.77
7.2.100.0030.00616.93
7.2.90.0120.00316.98
7.2.80.0100.00717.09
7.2.70.0060.00616.77
7.2.60.0020.01416.87
7.2.50.0070.00717.01
7.2.40.0070.00717.03
7.2.30.0090.00616.72
7.2.20.0060.01016.80
7.2.10.0100.00016.96
7.2.00.0030.01318.23
7.1.330.0030.01015.71
7.1.320.0030.01015.92
7.1.310.0060.00615.81
7.1.300.0060.00615.58
7.1.290.0070.00715.68
7.1.280.0000.01315.87
7.1.270.0040.01115.86
7.1.260.0030.00615.56
7.1.250.0070.00315.77
7.1.200.0000.01115.52
7.1.100.0000.01418.11
7.1.70.0040.00417.23
7.1.60.0140.01019.50
7.1.50.0040.01416.87
7.1.00.0000.08022.48
7.0.200.0040.00416.49
7.0.60.0070.06019.86
7.0.50.0000.05017.88
7.0.40.0070.05720.20
7.0.30.0230.04020.23
7.0.20.0300.06720.24
7.0.10.0070.07720.17
7.0.00.0130.07720.14
5.6.280.0030.04720.77
5.6.210.0030.04020.75
5.6.200.0130.06318.20
5.6.190.0100.08320.50
5.6.180.0130.05020.65
5.6.170.0300.04020.55
5.6.160.0070.07020.44
5.6.150.0170.06018.15
5.6.140.0000.05718.27
5.6.130.0030.05318.18
5.6.120.0070.05720.97
5.6.110.0130.08021.09
5.6.100.0100.08020.97
5.6.90.0030.04020.88
5.6.80.0170.07020.53
5.5.350.0030.06320.41
5.5.340.0030.05718.02
5.5.330.0100.06720.35
5.5.320.3630.04020.35
5.5.310.0300.07320.29
5.5.300.0070.06018.04
5.5.290.0000.08717.94
5.5.280.0100.08020.89
5.5.270.0070.08320.75
5.5.260.0070.07020.79
5.5.250.0030.08720.71
5.5.240.0030.03320.13
5.4.450.0870.04719.19
5.4.440.1000.04019.46
5.4.430.0670.06319.38
5.4.420.0700.05019.60
5.4.410.0630.06019.25
5.4.400.0770.04019.13
5.4.390.0630.05719.28
5.4.380.0600.06019.05
5.4.370.0700.05319.37
5.4.360.0630.05718.96
5.4.350.0800.04319.01
5.4.340.0630.05718.83
5.4.320.0900.07319.13
5.4.310.0670.05319.38
5.4.300.0800.04319.23
5.4.290.0630.05718.83
5.4.280.0630.05719.26
5.4.270.0730.05318.84
5.4.260.0770.04319.23
5.4.250.0600.06319.13
5.4.240.0770.05019.14
5.4.230.0800.04319.00
5.4.220.0700.06019.36
5.4.210.0600.05719.00
5.4.200.0870.03719.06
5.4.190.0700.05719.14
5.4.180.0070.07319.25
5.4.170.0170.04719.21
5.4.160.0070.05319.03
5.4.150.0600.04719.13
5.4.140.0630.05716.48
5.4.130.0800.04316.51
5.4.120.0700.04716.30
5.4.110.0670.05016.51
5.4.100.0670.05316.62
5.4.90.0770.04316.25
5.4.80.0730.04316.43
5.4.70.0270.03716.43
5.4.60.0000.07316.49
5.4.50.0070.03716.34
5.4.40.0230.05016.33
5.4.30.0200.06016.38
5.4.20.0000.07016.38

preferences:
56.82 ms | 401 KiB | 5 Q