3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { protected $var = true; } class Bar extends Foo { public $var = 'abc'; } $reflectionFoo = new ReflectionProperty('Foo', 'var'); $reflectionBar = new ReflectionProperty('Bar', 'var'); Reflection::export($reflectionFoo); Reflection::export($reflectionBar); $bar = new Bar(); var_dump($bar); //$reflectionFoo->setAccessible(true); $reflectionFoo->setValue($bar, '<NEW>'); var_dump($bar);

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.0070.00718.56
8.3.50.0110.00322.76
8.3.40.0150.00618.84
8.3.30.0070.00719.07
8.3.20.0040.00420.38
8.3.10.0000.00723.66
8.3.00.0040.00419.51
8.2.180.0190.00818.13
8.2.170.0070.00722.96
8.2.160.0110.00420.37
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00421.02
8.2.110.0090.00022.13
8.2.100.0080.00417.75
8.2.90.0040.00417.75
8.2.80.0030.00617.97
8.2.70.0000.00817.64
8.2.60.0000.00917.80
8.2.50.0050.00318.10
8.2.40.0040.00420.34
8.2.30.0000.00719.51
8.2.20.0020.00517.62
8.2.10.0040.00418.11
8.2.00.0040.00417.80
8.1.280.0100.01025.92
8.1.270.0040.00423.96
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0080.00023.95
8.1.230.0040.00819.17
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0100.00317.23
8.1.190.0000.00817.13
8.1.180.0040.00418.10
8.1.170.0060.00318.50
8.1.160.0070.00321.86
8.1.150.0040.00418.83
8.1.140.0070.00017.40
8.1.130.0030.00317.84
8.1.120.0030.00317.41
8.1.110.0040.00417.29
8.1.100.0030.00517.44
8.1.90.0000.00717.30
8.1.80.0000.00717.29
8.1.70.0040.00417.34
8.1.60.0000.00817.50
8.1.50.0050.00317.46
8.1.40.0030.00617.34
8.1.30.0040.00417.56
8.1.20.0070.00017.60
8.1.10.0070.00017.45
8.1.00.0000.00817.41
8.0.300.0080.00019.63
8.0.290.0060.00316.63
8.0.280.0030.00318.30
8.0.270.0030.00317.21
8.0.260.0000.00817.14
8.0.250.0000.00716.96
8.0.240.0000.00617.03
8.0.230.0000.00716.86
8.0.220.0040.00416.91
8.0.210.0000.00716.86
8.0.200.0030.00316.82
8.0.190.0000.00816.96
8.0.180.0030.00316.84
8.0.170.0080.00016.91
8.0.160.0040.00416.97
8.0.150.0030.00416.73
8.0.140.0050.00216.78
8.0.130.0000.00513.27
8.0.120.0000.00816.88
8.0.110.0070.00016.93
8.0.100.0040.00416.98
8.0.90.0040.00417.02
8.0.80.0110.00416.89
8.0.70.0070.00016.79
8.0.60.0030.00516.82
8.0.50.0000.00816.84
8.0.30.0120.00917.00
8.0.20.0110.00917.40
8.0.10.0040.00416.96
8.0.00.0070.01316.92
7.4.330.0030.00315.09
7.4.320.0030.00316.46
7.4.300.0030.00316.41
7.4.290.0070.00016.51
7.4.280.0030.00516.49
7.4.270.0000.00716.47
7.4.260.0000.00816.57
7.4.250.0040.00416.42
7.4.240.0030.00416.60
7.4.230.0040.00416.61
7.4.220.0130.01016.55
7.4.210.0120.00316.52
7.4.200.0040.00316.59
7.4.160.0070.01116.65
7.4.150.0090.00917.40
7.4.140.0120.00617.86
7.4.130.0070.01116.53
7.4.120.0040.01316.65
7.4.110.0040.01216.46
7.4.100.0090.00916.57
7.4.90.0090.00916.46
7.4.80.0040.01819.39
7.4.70.0150.00316.52
7.4.60.0070.01016.56
7.4.50.0080.00016.48
7.4.40.0120.00316.40
7.4.30.0090.00616.57
7.4.00.0120.00414.86
7.3.330.0050.00013.31
7.3.320.0050.00013.26
7.3.310.0070.00016.26
7.3.300.0030.00316.19
7.3.290.0070.00716.45
7.3.280.0080.01016.29
7.3.270.0110.00617.40
7.3.260.0170.00716.27
7.3.250.0090.00916.25
7.3.240.0070.01116.30
7.3.230.0040.01316.39
7.3.210.0100.00716.26
7.3.200.0100.00719.39
7.3.190.0060.01216.51
7.3.180.0070.00716.30
7.3.170.0160.00016.52
7.3.160.0080.00816.58
7.3.10.0120.00616.46
7.3.00.0120.00616.73
7.2.330.0170.00016.57
7.2.320.0100.00716.47
7.2.310.0160.00616.41
7.2.300.0060.00916.43
7.2.290.0140.00316.61
7.2.130.0100.00716.84
7.2.120.0030.01016.94
7.2.110.0120.00316.54
7.2.100.0180.00016.88
7.2.90.0160.00016.65
7.2.80.0150.00316.63
7.2.70.0160.00316.59
7.2.60.0070.00916.62
7.2.50.0110.00316.99
7.2.40.0150.00316.83
7.2.30.0070.01016.59
7.2.20.0120.00316.75
7.2.10.0080.00816.50
7.2.00.0100.00617.94
7.1.250.0100.00715.70
7.1.240.0110.00715.70
7.1.230.0080.00815.68
7.1.220.0110.00715.60
7.1.210.0000.01615.64
7.1.200.0060.00715.67
7.1.190.0130.00715.57
7.1.180.0090.00615.78
7.1.170.0090.00615.75
7.1.160.0030.01015.73
7.1.150.0080.00815.82
7.1.140.0130.00315.68
7.1.130.0120.00615.71
7.1.120.0150.00315.73
7.1.110.0070.01015.54
7.1.100.0050.00716.75
7.1.90.0070.01015.80
7.1.80.0130.00315.59
7.1.70.0040.00816.33
7.1.60.0090.01217.51
7.1.50.0130.00916.36
7.1.40.0120.00615.57
7.1.30.0170.00315.31
7.1.20.0120.00915.64
7.1.10.0190.00615.71
7.1.00.0120.04218.92
7.0.330.0100.00515.42
7.0.320.0100.00715.45
7.0.310.0100.00715.52
7.0.300.0110.00715.32
7.0.290.0120.00315.14
7.0.280.0070.00715.27
7.0.270.0120.00615.10
7.0.260.0100.00715.16
7.0.250.0160.00015.06
7.0.240.0030.01215.52
7.0.230.0040.01215.46
7.0.220.0130.00315.09
7.0.210.0100.00715.14
7.0.200.0090.00416.13
7.0.190.0130.00315.36
7.0.180.0140.00415.18
7.0.170.0190.00315.27
7.0.160.0090.00915.45
7.0.150.0150.00915.25
7.0.140.0060.04518.72
7.0.130.0180.00615.25
7.0.120.0110.01115.18
7.0.110.0150.02517.60
7.0.100.0260.03517.60
7.0.90.0140.02617.63
7.0.80.0180.02517.61
7.0.70.0160.02317.54
7.0.60.0130.02617.37
7.0.50.0120.02317.79
7.0.40.0090.02116.71
7.0.30.0070.03216.72
7.0.20.0080.02116.81
7.0.10.0080.02316.70
7.0.00.0130.03816.66
5.6.380.0130.00014.34
5.6.370.0040.00814.07
5.6.360.0030.01314.23
5.6.350.0060.00913.88
5.6.340.0100.00314.14
5.6.330.0060.00914.11
5.6.320.0060.00913.82
5.6.310.0060.00913.74
5.6.300.0080.01214.32
5.6.290.0130.00813.99
5.6.280.0080.04217.41
5.6.270.0110.01114.09
5.6.260.0080.04317.30
5.6.250.0060.02617.31
5.6.240.0080.02617.27
5.6.230.0100.03217.30
5.6.220.0110.02217.50
5.6.210.0070.03217.30
5.6.200.0080.02517.61
5.6.190.0080.03517.49
5.6.180.0070.02317.38
5.6.170.0030.02717.71
5.6.160.0050.02517.62
5.6.150.0020.03317.60
5.6.140.0080.03917.65
5.6.130.0020.05117.83
5.6.120.0080.04517.62
5.6.110.0090.04117.60
5.6.100.0080.02117.56
5.6.90.0100.04317.57
5.6.80.0090.04017.21
5.6.70.0100.03917.14
5.6.60.0060.04317.13
5.6.50.0090.04217.23
5.6.40.0160.01817.04
5.6.30.0080.03417.13
5.6.20.0050.04617.33
5.6.10.0080.04617.12
5.6.00.0100.04317.23
5.5.380.0060.02415.41
5.5.370.0080.02115.68
5.5.360.0060.02415.58
5.5.350.0070.02215.76
5.5.340.0050.02915.90
5.5.330.0090.02215.70
5.5.320.0100.02515.77
5.5.310.0070.02815.88
5.5.300.0060.02815.73
5.5.290.0040.04315.91
5.5.280.0050.04615.93
5.5.270.0020.05015.92
5.5.260.0110.04015.97
5.5.250.0100.03515.71
5.5.240.0090.04115.63
5.5.230.0050.04015.66
5.5.220.0090.02015.38
5.5.210.0110.04215.51
5.5.200.0100.04015.56
5.5.190.0050.03815.54
5.5.180.0100.03815.59
5.5.170.0050.00510.81
5.5.160.0060.02315.33
5.5.150.0050.04015.42
5.5.140.0070.04215.42
5.5.130.0060.04115.49
5.5.120.0140.03015.38
5.5.110.0090.03715.42
5.5.100.0030.04415.40
5.5.90.0100.03415.31
5.5.80.0090.03715.35
5.5.70.0030.04615.25
5.5.60.0130.03315.54
5.5.50.0120.02815.72
5.5.40.0070.04315.73
5.5.30.0080.04015.62
5.5.20.0030.02715.64
5.5.10.0080.04015.61
5.5.00.0090.04215.46
5.4.450.0050.04214.99
5.4.440.0000.02514.91
5.4.430.0080.03515.13
5.4.420.0040.04514.97
5.4.410.0060.03815.15
5.4.400.0060.04014.78
5.4.390.0080.04014.98
5.4.380.0110.03714.76
5.4.370.0120.03314.86
5.4.360.0020.02515.01
5.4.350.0110.04515.04
5.4.340.0030.03814.73
5.4.330.0050.00710.78
5.4.320.0080.01814.95
5.4.310.0070.04015.01
5.4.300.0060.03914.76
5.4.290.0110.03615.08
5.4.280.0060.03914.89
5.4.270.0050.04315.12
5.4.260.0070.03414.83
5.4.250.0070.04014.89
5.4.240.0080.03814.90
5.4.230.0130.03114.74
5.4.220.0080.04014.84
5.4.210.0090.03314.76
5.4.200.0030.04414.73
5.4.190.0100.03715.03
5.4.180.0050.04115.07
5.4.170.0100.03514.89
5.4.160.0130.03314.99
5.4.150.0050.02514.83
5.4.140.0070.04213.43
5.4.130.0100.03313.63
5.4.120.0030.04213.74
5.4.110.0020.04313.78
5.4.100.0050.04013.62
5.4.90.0030.02813.70
5.4.80.0060.02813.67
5.4.70.0020.04413.63
5.4.60.0090.03313.69
5.4.50.0020.04113.61
5.4.40.0090.02013.76
5.4.30.0090.03713.65
5.4.20.0000.03813.70
5.4.10.0030.04313.60
5.4.00.0040.03813.35
5.3.290.0050.04012.59
5.3.280.0060.04112.56
5.3.270.0000.04412.71
5.3.260.0050.03912.50
5.3.250.0010.03112.47
5.3.240.0020.02912.62
5.3.230.0100.03712.56
5.3.220.0060.03412.55
5.3.210.0080.04112.62
5.3.200.0080.03812.53
5.3.190.0090.03612.57
5.3.180.0080.03812.65
5.3.170.0100.03812.54
5.3.160.0060.03812.62
5.3.150.0110.03712.62
5.3.140.0020.04112.46
5.3.130.0080.03712.62
5.3.120.0070.04012.61
5.3.110.0050.03912.60
5.3.100.0080.03412.24
5.3.90.0110.03512.21
5.3.80.0020.04212.18
5.3.70.0040.03512.18
5.3.60.0050.03512.38
5.3.50.0070.03212.20
5.3.40.0030.03612.23
5.3.30.0030.03312.03
5.3.20.0030.03612.14
5.3.10.0020.02712.04
5.3.00.0030.04011.98
5.2.170.0030.02810.73
5.2.160.0030.03410.79
5.2.150.0070.03010.66
5.2.140.0070.03010.72
5.2.130.0050.03510.75
5.2.120.0060.03010.76
5.2.110.0060.03410.68
5.2.100.0060.02610.74
5.2.90.0040.01910.68
5.2.80.0070.03210.70
5.2.70.0100.02810.67
5.2.60.0070.03010.49
5.2.50.0040.02010.58
5.2.40.0030.02710.61
5.2.30.0030.01510.65
5.2.20.0020.03310.62
5.2.10.0020.03310.42
5.2.00.0050.03010.58
5.1.60.0000.03210.30
5.1.50.0030.01710.30
5.1.40.0050.02710.31
5.1.30.0060.02010.30
5.1.20.0020.03110.30
5.1.10.0050.02610.30
5.1.00.0050.02710.30
5.0.50.0030.02610.30
5.0.40.0050.02210.30
5.0.30.0030.03510.30
5.0.20.0020.02310.30
5.0.10.0000.02710.30
5.0.00.0020.03410.30
4.4.90.0030.02010.30
4.4.80.0020.01910.30
4.4.70.0050.01710.30
4.4.60.0040.00810.30
4.4.50.0000.01710.30
4.4.40.0000.02710.30
4.4.30.0060.01510.30
4.4.20.0030.01710.30
4.4.10.0040.00910.30
4.4.00.0020.02610.30
4.3.110.0020.01910.30
4.3.100.0010.01810.30
4.3.90.0010.01310.30
4.3.80.0000.03110.30
4.3.70.0000.01910.30
4.3.60.0070.00910.30
4.3.50.0050.00810.30
4.3.40.0020.02810.30
4.3.30.0000.01910.30
4.3.20.0020.01210.30
4.3.10.0000.01510.30
4.3.00.0030.01510.30

preferences:
43.78 ms | 401 KiB | 5 Q