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.70.0120.00318.56
8.3.60.0080.00816.75
8.3.50.0100.01121.05
8.3.40.0120.00318.57
8.3.30.0130.00618.78
8.3.20.0070.00020.38
8.3.10.0040.00423.57
8.3.00.0050.00318.00
8.2.190.0120.00618.54
8.2.180.0180.00418.27
8.2.170.0070.00722.96
8.2.160.0080.00520.44
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0040.00717.75
8.2.110.0000.00822.25
8.2.100.0120.00017.75
8.2.90.0050.00319.20
8.2.80.0050.00317.97
8.2.70.0050.00317.50
8.2.60.0000.00918.05
8.2.50.0080.00018.07
8.2.40.0000.00719.28
8.2.30.0030.00520.61
8.2.20.0030.00617.61
8.2.10.0000.00718.18
8.2.00.0080.00018.03
8.1.280.0040.01125.92
8.1.270.0090.00023.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00622.52
8.1.230.0040.00717.42
8.1.220.0040.00417.79
8.1.210.0060.00318.77
8.1.200.0030.00617.35
8.1.190.0000.00817.35
8.1.180.0090.00018.10
8.1.170.0060.00318.43
8.1.160.0000.00722.11
8.1.150.0030.00318.78
8.1.140.0000.00819.23
8.1.130.0070.00017.70
8.1.120.0050.00317.46
8.1.110.0030.00617.33
8.1.100.0070.00017.38
8.1.90.0020.00517.51
8.1.80.0030.00617.34
8.1.70.0030.00517.40
8.1.60.0040.00417.48
8.1.50.0000.00717.49
8.1.40.0040.00417.41
8.1.30.0040.00417.63
8.1.20.0000.00717.67
8.1.10.0060.00317.50
8.1.00.0040.00417.43
8.0.300.0030.00618.77
8.0.290.0000.00716.75
8.0.280.0030.00318.44
8.0.270.0000.00717.25
8.0.260.0000.00617.18
8.0.250.0040.00417.00
8.0.240.0040.00417.00
8.0.230.0030.00317.02
8.0.220.0030.00316.90
8.0.210.0070.00016.85
8.0.200.0030.00317.00
8.0.190.0050.00317.07
8.0.180.0040.00416.97
8.0.170.0000.00716.95
8.0.160.0030.00517.02
8.0.150.0070.00016.79
8.0.140.0030.00316.97
8.0.130.0080.00013.45
8.0.120.0030.00516.94
8.0.110.0000.00816.84
8.0.100.0080.00016.81
8.0.90.0000.00816.77
8.0.80.0150.00016.83
8.0.70.0000.00916.96
8.0.60.0040.00416.81
8.0.50.0080.00016.85
8.0.30.0110.00716.89
8.0.20.0090.01017.40
8.0.10.0030.00516.87
8.0.00.0100.01016.73
7.4.330.0050.00015.08
7.4.320.0000.00716.63
7.4.300.0060.00016.44
7.4.290.0050.00316.53
7.4.280.0060.00316.60
7.4.270.0030.00316.58
7.4.260.0030.00316.44
7.4.250.0070.00016.48
7.4.240.0040.00416.62
7.4.230.0000.00716.70
7.4.220.0100.00716.45
7.4.210.0070.01416.67
7.4.200.0000.00716.63
7.4.160.0130.00316.59
7.4.150.0070.01017.40
7.4.140.0120.00717.86
7.4.130.0080.00816.51
7.4.120.0110.00516.56
7.4.110.0060.01216.61
7.4.100.0060.01516.54
7.4.90.0110.00616.65
7.4.80.0170.00319.39
7.4.70.0110.00916.63
7.4.60.0030.01416.66
7.4.50.0000.00816.66
7.4.40.0070.01016.71
7.4.30.0130.01316.48
7.4.00.0100.00615.23
7.3.330.0000.00513.31
7.3.320.0070.00013.20
7.3.310.0000.00716.39
7.3.300.0030.00416.41
7.3.290.0080.00716.32
7.3.280.0140.00616.35
7.3.270.0060.01217.40
7.3.260.0080.00816.34
7.3.250.0070.01316.42
7.3.240.0120.00916.35
7.3.230.0110.00916.50
7.3.210.0070.01016.70
7.3.200.0140.00316.43
7.3.190.0170.00016.70
7.3.180.0100.00516.41
7.3.170.0110.00516.55
7.3.160.0130.00316.39
7.2.330.0090.01016.58
7.2.320.0160.00516.74
7.2.310.0120.01016.77
7.2.300.0060.01616.68
7.2.290.0130.01016.83
7.2.120.0040.01116.40
7.2.110.0130.00316.69
7.2.100.0090.00616.62
7.2.90.0060.01216.82
7.2.80.0070.00716.46
7.2.70.0030.00616.93
7.2.60.0110.00316.85
7.2.50.0080.00816.84
7.2.40.0000.00916.95
7.2.30.0030.00717.00
7.2.20.0000.01016.89
7.2.10.0070.00316.76
7.2.00.0030.01018.24
7.1.240.0000.01215.88
7.1.230.0040.01115.64
7.1.220.0000.01415.84
7.1.210.0030.01015.56
7.1.200.0040.00615.79
7.1.190.0090.00615.76
7.1.180.0100.00315.46
7.1.170.0030.01315.83
7.1.160.0070.00715.57
7.1.150.0110.00415.54
7.1.140.0070.01015.79
7.1.130.0090.00615.87
7.1.120.0100.00315.68
7.1.110.0070.00715.80
7.1.100.0050.00816.99
7.1.90.0080.00415.87
7.1.80.0040.00415.57
7.1.70.0020.00916.23
7.1.60.0030.01317.69
7.1.50.0090.00916.12
7.1.40.0040.00915.70
7.1.30.0030.01115.64
7.1.20.0040.00815.62
7.1.10.0050.00515.71
7.1.00.0050.04219.01
7.0.320.0070.00715.46
7.0.310.0060.00615.34
7.0.300.0090.00615.42
7.0.290.0000.01215.41
7.0.280.0090.00315.45
7.0.270.0040.00815.52
7.0.260.0100.00315.34
7.0.250.0030.00915.59
7.0.240.0030.00915.25
7.0.230.0060.00615.64
7.0.220.0030.01015.55
7.0.210.0040.00815.49
7.0.200.0050.00715.98
7.0.190.0080.00315.26
7.0.180.0000.01015.21
7.0.170.0040.01115.50
7.0.160.0060.00915.61
7.0.150.0070.00715.39
7.0.140.0040.00815.56
7.0.130.0060.00315.56
7.0.120.0070.00715.39
7.0.110.0030.01015.49
7.0.100.0060.00615.48
7.0.90.0060.00615.49
7.0.80.0070.00715.39
7.0.70.0070.00715.43
7.0.60.0050.04317.75
7.0.50.0080.04016.72
7.0.40.0090.01816.60
7.0.30.0130.03116.68
7.0.20.0170.04116.79
7.0.10.0050.03716.79
7.0.00.0120.03516.80
5.6.380.0000.01314.31
5.6.370.0090.00614.22
5.6.360.0090.00614.30
5.6.350.0100.00614.62
5.6.340.0150.00014.64
5.6.330.0030.00714.20
5.6.320.0030.01014.62
5.6.310.0090.00314.32
5.6.300.0070.00714.13
5.6.290.0070.00313.91
5.6.280.0020.02317.83
5.6.270.0090.00614.44
5.6.260.0040.00714.49
5.6.250.0030.00914.42
5.6.240.0090.00614.49
5.6.230.0050.00314.21
5.6.220.0090.00614.30
5.6.210.0170.03117.30
5.6.200.0000.04316.40
5.6.190.0060.03117.55
5.6.180.0210.02317.25
5.6.170.0250.03617.37
5.6.160.0070.02217.46
5.6.150.0050.03516.36
5.6.140.0070.02716.21
5.6.130.0070.03216.38
5.6.120.0080.04117.54
5.6.110.0030.02917.68
5.6.100.0060.02417.70
5.6.90.0100.04517.76
5.6.80.0060.02217.30
5.6.70.0040.01214.13
5.6.60.0050.01014.44
5.6.50.0110.00414.27
5.6.40.0000.01114.29
5.6.30.0070.00714.11
5.6.20.0000.01514.21
5.6.10.0080.00814.13
5.6.00.0060.00614.11
5.5.380.0030.00311.33
5.5.370.0040.00711.47
5.5.360.0000.00511.07
5.5.350.0050.04215.87
5.5.340.0100.04214.58
5.5.330.0020.02915.72
5.5.320.1640.02715.74
5.5.310.0100.02815.66
5.5.300.0070.03814.73
5.5.290.0060.02014.51
5.5.280.0060.02316.13
5.5.270.0040.02615.91
5.5.260.0170.03715.92
5.5.250.0050.02915.88
5.5.240.0050.02315.62
5.5.230.0080.00211.11
5.5.220.0090.00011.07
5.5.210.0060.00311.13
5.5.200.0080.00311.07
5.5.190.0050.00511.11
5.5.180.0060.00611.07
5.5.170.0150.00014.06
5.5.160.0070.00411.07
5.5.150.0000.01011.07
5.5.140.0070.00311.30
5.5.130.0070.00411.11
5.5.120.0120.00011.29
5.5.110.0040.00811.23
5.5.100.0000.00911.07
5.5.90.0000.01211.07
5.5.80.0040.00811.29
5.5.70.0070.00311.07
5.5.60.0040.00411.21
5.5.50.0000.00811.07
5.5.40.0070.00711.07
5.5.30.0080.00411.29
5.5.20.0110.00411.07
5.5.10.0080.00311.07
5.5.00.0140.00011.27
5.4.450.0380.03015.38
5.4.440.0380.02815.28
5.4.430.0370.02815.27
5.4.420.0410.03115.34
5.4.410.0320.03415.20
5.4.400.0420.03214.98
5.4.390.0510.03515.22
5.4.380.0420.03015.02
5.4.370.0430.02915.03
5.4.360.0370.03115.31
5.4.350.0350.03215.28
5.4.340.0410.02915.07
5.4.330.0130.00011.07
5.4.320.0420.02815.20
5.4.310.0360.03215.15
5.4.300.0500.03615.18
5.4.290.0420.02415.19
5.4.280.0400.03015.23
5.4.270.0440.03315.33
5.4.260.0480.03115.11
5.4.250.0470.03615.17
5.4.240.0430.02715.18
5.4.230.0400.02715.21
5.4.220.0470.03215.15
5.4.210.0510.03615.16
5.4.200.0460.03315.12
5.4.190.0510.03815.19
5.4.180.0470.02315.10
5.4.170.0390.02714.95
5.4.160.0430.02715.19
5.4.150.0400.03115.21
5.4.140.0420.02713.81
5.4.130.0390.02713.81
5.4.120.0370.02813.81
5.4.110.0390.03613.85
5.4.100.0490.03013.67
5.4.90.0470.03313.79
5.4.80.0490.03313.84
5.4.70.0160.02713.68
5.4.60.0070.01913.78
5.4.50.0050.04013.81
5.4.40.0180.03313.81
5.4.30.0130.02213.66
5.4.20.0060.03213.83
5.4.10.0060.00311.07
5.4.00.0100.00011.20

preferences:
40.17 ms | 401 KiB | 5 Q