3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A extends \ArrayObject {} $a = new A; $a->offsetSet('test', 'testValue'); $reflection = new \ReflectionObject($a); $properties = $reflection->getProperties(); $c = count($properties); echo $c . PHP_EOL; if ($c) { var_dump($properties[0]->getValue($a)); }

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.0150.00318.27
8.3.50.0140.00822.11
8.3.40.0110.00418.67
8.3.30.0040.01118.40
8.3.20.0060.00319.14
8.3.10.0080.00021.85
8.3.00.0000.00920.74
8.2.180.0120.00918.54
8.2.170.0080.01222.96
8.2.160.0100.00320.52
8.2.150.0070.00025.66
8.2.140.0000.00724.66
8.2.130.0040.00426.16
8.2.120.0070.00717.49
8.2.110.0030.00619.39
8.2.100.0070.00417.91
8.2.90.0000.00918.09
8.2.80.0060.00318.22
8.2.70.0040.00417.50
8.2.60.0040.00417.50
8.2.50.0000.00818.10
8.2.40.0050.00320.64
8.2.30.0000.00719.24
8.2.20.0040.00417.96
8.2.10.0040.00418.12
8.2.00.0060.00317.54
8.1.280.0080.00825.92
8.1.270.0040.00422.05
8.1.260.0080.00026.35
8.1.250.0000.00728.09
8.1.240.0030.00622.59
8.1.230.0110.00020.88
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0050.00317.35
8.1.190.0030.00517.22
8.1.180.0000.00818.10
8.1.170.0030.00618.70
8.1.160.0070.00018.88
8.1.150.0070.00018.69
8.1.140.0000.00719.55
8.1.130.0070.00017.48
8.1.120.0000.00717.47
8.1.110.0030.00717.41
8.1.100.0070.00017.49
8.1.90.0070.00017.38
8.1.80.0080.00017.45
8.1.70.0060.00317.50
8.1.60.0040.00417.56
8.1.50.0000.00817.52
8.1.40.0080.00017.49
8.1.30.0040.00417.70
8.1.20.0000.00817.62
8.1.10.0000.00717.60
8.1.00.0000.00717.48
8.0.300.0050.00219.90
8.0.290.0060.00316.75
8.0.280.0070.00018.34
8.0.270.0030.00317.24
8.0.260.0030.00316.81
8.0.250.0030.00316.96
8.0.240.0070.00016.90
8.0.230.0030.00316.95
8.0.220.0050.00216.97
8.0.210.0030.00316.78
8.0.200.0000.00716.90
8.0.190.0000.00716.93
8.0.180.0040.00416.96
8.0.170.0070.00016.87
8.0.160.0080.00016.90
8.0.150.0070.00016.73
8.0.140.0030.00316.73
8.0.130.0000.00613.33
8.0.120.0040.00416.77
8.0.110.0050.00216.80
8.0.100.0040.00416.79
8.0.90.0090.00016.69
8.0.80.0000.01516.87
8.0.70.0000.00716.89
8.0.60.0040.00416.75
8.0.50.0070.00016.82
8.0.30.0090.00917.09
8.0.20.0140.00417.40
8.0.10.0070.00017.04
8.0.00.0120.00616.88
7.4.330.0050.00015.55
7.4.320.0030.00316.48
7.4.300.0030.00316.51
7.4.290.0000.00716.61
7.4.280.0080.00016.63
7.4.270.0000.00716.52
7.4.260.0080.00016.50
7.4.250.0000.00716.56
7.4.240.0030.00416.58
7.4.230.0030.00316.60
7.4.220.0060.01316.52
7.4.210.0130.00716.49
7.4.200.0070.00016.60
7.4.160.0050.01116.53
7.4.150.0030.01317.40
7.4.140.0100.01017.86
7.4.130.0130.00416.48
7.4.120.0090.00816.44
7.4.110.0100.00716.41
7.4.100.0100.00716.58
7.4.90.0140.00316.51
7.4.80.0120.00919.39
7.4.70.0110.00616.51
7.4.60.0080.00816.55
7.4.50.0000.01316.48
7.4.40.0150.00316.47
7.4.30.0070.01016.62
7.4.00.0090.00615.03
7.3.330.0000.00513.13
7.3.320.0000.00513.40
7.3.310.0030.00316.46
7.3.300.0060.00016.24
7.3.290.0100.00416.24
7.3.280.0090.00816.34
7.3.270.0070.01017.40
7.3.260.0070.01116.48
7.3.250.0110.00616.50
7.3.240.0080.01316.46
7.3.230.0150.00616.53
7.3.210.0130.00316.32
7.3.200.0140.00316.45
7.3.190.0110.00516.36
7.3.180.0140.00316.70
7.3.170.0190.00016.50
7.3.160.0060.01216.50
7.3.10.0120.00316.79
7.3.00.0060.00616.78
7.2.330.0040.01316.70
7.2.320.0140.00416.43
7.2.310.0040.01416.50
7.2.300.0040.01916.36
7.2.290.0100.01016.82
7.2.130.0000.01316.85
7.2.120.0110.00016.76
7.2.110.0000.01516.96
7.2.100.0470.01015.66
7.2.90.0340.00315.84
7.2.80.0360.01015.83
7.2.70.0310.00315.91
7.2.60.0320.01016.05
7.2.50.0260.01215.94
7.2.40.0490.01116.09
7.2.30.0360.00615.96
7.2.20.0350.00916.02
7.2.10.0580.00315.81
7.2.00.0380.00817.08
7.1.250.0030.01015.84
7.1.220.0810.00913.93
7.1.210.0680.01213.84
7.1.200.0370.00914.98
7.1.190.0720.00314.00
7.1.180.0670.00713.65
7.1.170.0560.00713.80
7.1.160.0700.01013.75
7.1.150.0530.00013.47
7.1.140.0670.00713.79
7.1.130.0710.00413.82
7.1.120.0680.00313.66
7.1.110.0680.00913.89
7.1.100.0870.01013.52
7.1.90.0610.00713.92
7.1.80.0780.00313.91
7.1.70.0340.00915.35
7.1.60.0530.00924.49
7.1.50.0490.01824.42
7.1.40.0720.01031.67
7.1.30.1170.01331.82
7.1.20.0730.01031.66
7.1.10.0590.00313.79
7.1.00.0430.03518.07
7.0.310.0970.01313.54
7.0.300.0830.00413.58
7.0.290.0580.00313.39
7.0.280.0500.00713.20
7.0.270.0900.00313.77
7.0.260.0760.01013.54
7.0.250.0610.00313.54
7.0.240.0700.00013.43
7.0.230.0710.01013.65
7.0.220.0670.00613.47
7.0.210.0610.01013.65
7.0.200.0420.01015.07
7.0.190.0660.01013.55
7.0.180.0600.01213.75
7.0.170.0630.00713.50
7.0.160.0650.01013.40
7.0.150.0750.01313.67
7.0.140.0900.00613.64
7.0.130.0360.03617.81
7.0.120.0490.04617.76
7.0.110.0440.03817.92
7.0.100.0310.03717.66
7.0.90.0290.03117.84
7.0.80.0340.04817.71
7.0.70.0490.03317.83
7.0.60.0570.03317.85
7.0.50.0590.04017.88
7.0.40.0520.03717.87
7.0.30.0470.03817.94
7.0.20.0360.03317.95
7.0.10.0350.03917.69
7.0.00.0410.02817.72
5.6.380.0060.00614.19
5.6.370.0120.00714.58
5.6.360.0120.00814.65
5.6.350.0170.00314.57
5.6.340.0150.00614.50
5.6.330.0090.00914.30
5.6.320.0120.01114.48
5.6.310.0160.00714.42
5.6.300.0130.00914.18
5.6.290.0140.00914.34
5.6.280.0120.04117.72
5.6.270.0110.03017.63
5.6.260.0170.03517.71
5.6.250.0190.02917.66
5.6.240.0180.03417.63
5.6.230.0180.03917.73
5.6.220.0140.03617.57
5.6.210.0160.02817.72
5.6.200.0100.04417.61
5.6.190.0170.04417.55
5.6.180.0140.03217.56
5.6.170.0170.02917.74
5.6.160.0090.03617.63
5.6.150.0140.03817.50
5.6.140.0150.03017.65
5.6.130.0150.03217.58
5.6.120.0090.03417.69
5.6.110.0150.03317.65
5.6.100.0170.02617.44
5.6.90.0120.03117.54
5.6.80.0100.03217.34
5.6.70.0120.03117.17
5.6.60.0080.03517.19
5.6.50.0140.02717.27
5.6.40.0140.02817.34
5.6.30.0210.02717.24
5.6.20.0120.03017.27
5.6.10.0090.03117.18
5.6.00.0090.03317.46
5.5.380.0080.00811.23
5.5.370.0080.00811.18
5.5.360.0110.00411.23
5.5.350.0100.00711.17
5.5.340.0050.00911.20
5.5.330.0090.00911.17
5.5.320.0140.00311.37
5.5.310.0110.00811.18
5.5.300.0100.00811.12
5.5.290.0110.00411.03
5.5.280.0100.00610.96
5.5.270.0040.01211.06
5.5.260.0060.01111.09
5.5.250.0000.01511.25
5.5.240.0090.00611.03
5.5.230.0120.00310.98
5.5.220.0090.00511.17
5.5.210.0120.00211.19
5.5.200.0110.00610.97
5.5.190.0120.00310.96
5.5.180.0100.00711.34
5.5.170.0090.00914.39
5.5.160.0090.00611.28
5.5.150.0100.00510.71
5.5.140.0100.00711.07
5.5.130.0070.00511.22
5.5.120.0110.00711.33
5.5.110.0120.00310.98
5.5.100.0060.01111.04
5.5.90.0110.00611.04
5.5.80.0110.00311.22
5.5.70.0100.00510.97
5.5.60.0050.00911.02
5.5.50.0080.00811.10
5.5.40.0120.00311.02
5.5.30.0070.00711.40
5.5.20.0090.00711.10
5.5.10.0130.00011.24
5.5.00.0080.00811.34
5.4.450.0080.00911.14
5.4.440.0000.01511.18
5.4.430.0150.00010.76
5.4.420.0100.00311.10
5.4.410.0050.01011.09
5.4.400.0080.00811.06
5.4.390.0060.00611.32
5.4.380.0030.01011.05
5.4.370.0160.00510.97
5.4.360.0070.00711.09
5.4.350.0030.01210.99
5.4.340.0080.00811.28
5.4.330.0140.00011.04
5.4.320.0110.00511.19
5.4.310.0120.00410.86
5.4.300.0100.00311.03
5.4.290.0100.00711.10
5.4.280.0040.01110.77
5.4.270.0080.00711.33
5.4.260.0000.01411.06
5.4.250.0100.00310.86
5.4.240.0140.00011.07
5.4.230.0000.01311.05
5.4.220.0110.00410.96
5.4.210.0100.00611.08
5.4.200.0110.00711.23
5.4.190.0150.00211.09
5.4.180.0070.00611.11
5.4.170.0130.00311.02
5.4.160.0000.01310.81
5.4.150.0090.00610.99
5.4.140.0080.00411.02
5.4.130.0040.00711.46
5.4.120.0100.00510.91
5.4.110.0110.00011.21
5.4.100.0100.00511.05
5.4.90.0150.00010.88
5.4.80.0100.00611.16
5.4.70.0160.00011.15
5.4.60.0080.00811.16
5.4.50.0070.01111.13
5.4.40.0120.00011.19
5.4.30.0090.00411.12
5.4.20.0180.00011.07
5.4.10.0120.00011.11
5.4.00.0040.01111.07
5.3.290.0090.00610.71
5.3.280.0120.00210.43
5.3.270.0080.00610.65
5.3.260.0050.00810.52
5.3.250.0060.00610.39
5.3.240.0030.00810.19
5.3.230.0100.00510.25
5.3.220.0100.00710.53
5.3.210.0110.00310.19
5.3.200.0120.00010.53
5.3.190.0100.00310.38
5.3.180.0070.00710.55
5.3.170.0040.00810.64
5.3.160.0110.00410.69
5.3.150.0090.00310.72
5.3.140.0070.00410.56
5.3.130.0110.00310.59
5.3.120.0080.00410.49
5.3.110.0100.00710.35
5.3.100.0070.00610.38
5.3.90.0070.00710.28
5.3.80.0100.00510.25
5.3.70.0140.00010.20
5.3.60.0050.01010.64
5.3.50.0100.00210.31
5.3.40.0100.00510.54
5.3.30.0150.00310.63
5.3.20.0080.00410.29
5.3.10.0080.00410.03
5.3.00.0100.00010.38
5.2.170.0110.0029.75
5.2.160.0060.0069.75
5.2.150.0130.0009.75
5.2.140.0110.0039.75
5.2.130.0080.0049.75
5.2.120.0000.0149.75
5.2.110.0000.0139.75
5.2.100.0040.0049.75
5.2.90.0080.0009.75
5.2.80.0030.0069.75
5.2.70.0110.0009.75
5.2.60.0030.0079.75
5.2.50.0040.0089.75
5.2.40.0130.0009.75
5.2.30.0090.0059.75
5.2.20.0030.0109.75
5.2.10.0130.0009.75
5.2.00.0090.0009.75
5.1.60.0100.0009.75
5.1.50.0040.0049.75
5.1.40.0070.0029.75
5.1.30.0000.0089.75
5.1.20.0090.0009.75
5.1.10.0090.0009.75
5.1.00.0050.0039.75
5.0.50.0000.0079.75
5.0.40.0080.0009.75
5.0.30.0030.0059.75
5.0.20.0070.0009.75
5.0.10.0050.0039.75
5.0.00.0090.0009.75
4.4.90.0040.0049.75
4.4.80.0030.0039.75
4.4.70.0060.0009.75
4.4.60.0000.0099.75
4.4.50.0060.0009.75
4.4.40.0040.0049.75
4.4.30.0090.0009.75
4.4.20.0060.0009.75
4.4.10.0030.0069.75
4.4.00.0000.0079.75
4.3.110.0060.0009.75
4.3.100.0050.0049.75
4.3.90.0040.0049.75
4.3.80.0000.0089.75
4.3.70.0040.0029.75
4.3.60.0020.0059.75
4.3.50.0020.0049.75
4.3.40.0050.0009.75
4.3.30.0060.0009.75
4.3.20.0050.0009.75
4.3.10.0030.0039.75
4.3.00.0030.0039.75

preferences:
64.72 ms | 401 KiB | 5 Q