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->$key = $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.0120.00316.63
8.3.50.0100.00921.14
8.3.40.0090.00618.88
8.3.30.0070.01018.84
8.3.20.0040.00420.18
8.3.10.0040.00423.66
8.3.00.0000.00819.66
8.2.180.0000.01518.13
8.2.170.0140.00422.96
8.2.160.0100.00319.46
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00417.75
8.2.110.0030.00622.30
8.2.100.0000.01117.75
8.2.90.0040.00419.17
8.2.80.0060.00317.97
8.2.70.0080.00017.59
8.2.60.0030.00518.04
8.2.50.0000.00818.07
8.2.40.0000.00719.42
8.2.30.0080.00020.68
8.2.20.0030.00617.79
8.2.10.0040.00418.12
8.2.00.0050.00318.22
8.1.280.0110.00425.92
8.1.270.0000.00823.91
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00318.82
8.1.230.0090.00317.48
8.1.220.0000.00817.91
8.1.210.0000.00818.77
8.1.200.0040.00417.35
8.1.190.0030.00517.23
8.1.180.0040.00418.10
8.1.170.0080.00018.57
8.1.160.0000.00721.95
8.1.150.0000.00718.89
8.1.140.0040.00419.15
8.1.130.0000.00717.63
8.1.120.0050.00217.32
8.1.110.0000.00917.49
8.1.100.0040.00417.39
8.1.90.0040.00417.51
8.1.80.0000.00817.29
8.1.70.0000.00717.43
8.1.60.0080.00017.56
8.1.50.0040.00417.41
8.1.40.0080.00017.53
8.1.30.0030.00617.69
8.1.20.0040.00417.61
8.1.10.0000.00717.59
8.1.00.0050.00317.35
8.0.300.0070.00418.77
8.0.290.0030.00616.75
8.0.280.0030.00318.34
8.0.270.0000.00817.13
8.0.260.0000.00717.20
8.0.250.0000.00816.96
8.0.240.0030.00316.95
8.0.230.0030.00316.89
8.0.220.0030.00316.83
8.0.210.0040.00416.97
8.0.200.0030.00317.05
8.0.190.0060.00316.91
8.0.180.0030.00316.86
8.0.170.0000.00816.93
8.0.160.0020.00516.97
8.0.150.0030.00516.93
8.0.140.0070.00016.82
8.0.130.0070.00013.41
8.0.120.0040.00416.85
8.0.110.0050.00216.84
8.0.100.0040.00416.92
8.0.90.0040.00416.80
8.0.80.0030.01216.88
8.0.70.0030.00516.99
8.0.60.0040.00416.92
8.0.50.0000.00716.92
8.0.30.0090.00816.99
8.0.20.0100.00817.40
8.0.10.0050.00217.12
8.0.00.0110.00816.74
7.4.330.0050.00015.14
7.4.320.0000.00716.49
7.4.300.0000.00616.61
7.4.290.0000.00716.50
7.4.280.0040.00416.60
7.4.270.0030.00316.61
7.4.260.0040.00416.38
7.4.250.0040.00416.45
7.4.240.0020.00516.51
7.4.230.0040.00416.50
7.4.220.0080.00816.55
7.4.210.0000.01416.62
7.4.200.0030.00316.68
7.4.160.0030.01216.46
7.4.150.0130.00317.40
7.4.140.0110.00617.86
7.4.130.0070.01116.58
7.4.120.0070.01116.51
7.4.110.0100.01016.62
7.4.100.0060.01216.67
7.4.90.0070.01616.45
7.4.80.0160.00719.39
7.4.70.0100.00716.59
7.4.60.0060.01316.66
7.4.50.0060.00316.38
7.4.40.0110.01116.68
7.4.30.0100.01416.45
7.4.00.0070.00915.00
7.3.330.0020.00213.19
7.3.320.0040.00413.42
7.3.310.0070.00016.18
7.3.300.0040.00416.41
7.3.290.0080.00816.32
7.3.280.0040.01216.34
7.3.270.0140.00717.40
7.3.260.0100.00716.39
7.3.250.0060.01116.63
7.3.240.0030.01516.56
7.3.230.0160.00016.59
7.3.210.0090.00916.54
7.3.200.0060.01116.38
7.3.190.0140.00316.65
7.3.180.0100.00616.50
7.3.170.0060.01016.41
7.3.160.0120.00316.32
7.3.120.0090.00714.92
7.3.110.0020.01614.87
7.3.100.0050.00714.90
7.3.90.0090.00914.80
7.3.80.0090.00414.84
7.3.70.0040.00714.78
7.3.60.0040.01114.97
7.3.50.0060.00614.76
7.3.40.0030.00914.91
7.3.30.0030.01114.77
7.3.20.0050.00816.76
7.3.10.0070.00716.72
7.3.00.0040.01016.61
7.2.330.0130.00916.45
7.2.320.0120.00716.61
7.2.310.0130.00916.78
7.2.300.0080.00816.68
7.2.290.0110.01116.59
7.2.250.0050.01015.13
7.2.240.0120.00914.90
7.2.230.0080.01015.06
7.2.220.0030.01314.95
7.2.210.0090.00515.03
7.2.200.0100.00414.99
7.2.190.0100.00515.09
7.2.180.0040.01115.04
7.2.170.0030.00814.97
7.2.130.0040.00817.04
7.2.120.0000.01216.85
7.2.110.0000.01116.70
7.2.100.0080.00816.88
7.2.90.0000.01316.97
7.2.80.0030.01017.00
7.2.70.0000.01717.00
7.2.60.0090.00416.71
7.2.50.0030.01016.97
7.2.40.0070.01017.09
7.2.30.0040.01116.80
7.2.20.0070.00717.02
7.2.10.0030.01216.68
7.2.00.0030.01018.30
7.1.330.0060.00715.78
7.1.320.0100.00515.91
7.1.310.0070.00715.63
7.1.300.0060.00615.75
7.1.290.0040.00715.79
7.1.280.0070.00915.80
7.1.270.0090.00615.65
7.1.260.0070.00715.78
7.1.250.0070.00715.42
7.1.200.0070.00715.84
7.1.100.0060.01218.27
7.1.70.0020.00516.98
7.1.60.0030.02019.50
7.1.50.0040.00716.63
7.1.00.0030.07722.41
7.0.200.0000.00816.40
7.0.60.0170.07019.94
7.0.50.0070.03717.88
7.0.40.0070.04720.27
7.0.30.0230.07320.09
7.0.20.0400.08720.26
7.0.10.0030.05720.22
7.0.00.0070.09020.06
5.6.280.0070.03321.04
5.6.210.0030.04320.65
5.6.200.0100.07018.27
5.6.190.0070.04320.39
5.6.180.0430.07020.39
5.6.170.0330.05020.47
5.6.160.0100.05020.54
5.6.150.0100.06718.14
5.6.140.0130.04318.18
5.6.130.0130.08318.16
5.6.120.0030.04321.09
5.6.110.0100.08321.01
5.6.100.0100.08321.04
5.6.90.0100.07721.10
5.6.80.0100.06320.39
5.5.350.0070.08020.28
5.5.340.0100.07717.98
5.5.330.0000.05020.21
5.5.320.3870.04020.39
5.5.310.0330.07020.26
5.5.300.0070.08318.08
5.5.290.0100.07317.98
5.5.280.0070.08320.87
5.5.270.0170.07720.78
5.5.260.0130.06720.86
5.5.250.0100.07320.61
5.5.240.0030.07720.15
5.4.450.0730.05019.58
5.4.440.0800.05719.46
5.4.430.0770.05319.55
5.4.420.0770.04719.58
5.4.410.0770.05719.43
5.4.400.0770.05019.31
5.4.390.0730.06319.28
5.4.380.0800.04319.13
5.4.370.0800.04319.33
5.4.360.0800.04319.28
5.4.350.0630.05719.05
5.4.340.0770.05318.84
5.4.320.0700.05319.13
5.4.310.0670.05319.13
5.4.300.0730.06019.22
5.4.290.0730.05318.83
5.4.280.0770.05018.98
5.4.270.0870.04319.14
5.4.260.0770.04319.13
5.4.250.0870.05319.36
5.4.240.0730.04719.25
5.4.230.0800.04319.12
5.4.220.0700.05019.25
5.4.210.0670.05019.13
5.4.200.0630.05719.25
5.4.190.0730.04318.99
5.4.180.0700.05319.12
5.4.170.0730.05718.83
5.4.160.0830.04719.26
5.4.150.0730.05019.28
5.4.140.0700.05016.56
5.4.130.0730.04316.72
5.4.120.0730.05016.43
5.4.110.0770.05016.59
5.4.100.1000.06016.25
5.4.90.0700.04716.65
5.4.80.0830.04016.26
5.4.70.0370.06316.23
5.4.60.0100.06016.35
5.4.50.0000.03716.43
5.4.40.0100.04016.52
5.4.30.0270.06716.55
5.4.20.0000.06016.55

preferences:
43.71 ms | 401 KiB | 5 Q