3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { protected $bar = 'foo'; } $foo = new Foo(); $reflection = (new ReflectionObject($foo))->getProperty('bar'); $reflection->setAccessible(true); $reflection->setValue('baz'); $reflection->setAccessible(false); var_dump($foo);

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.0060.01216.50
8.3.60.0070.01018.43
8.3.50.0110.00822.09
8.3.40.0060.01218.85
8.3.30.0030.01019.10
8.3.20.0040.00420.15
8.3.10.0040.00423.70
8.3.00.0040.00418.99
8.2.190.0090.00918.54
8.2.180.0150.00018.30
8.2.170.0110.00422.96
8.2.160.0130.00322.27
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0080.00019.64
8.2.110.0100.00022.25
8.2.100.0110.00017.91
8.2.90.0060.00320.42
8.2.80.0000.00817.97
8.2.70.0040.00417.68
8.2.60.0000.00817.97
8.2.50.0040.00418.10
8.2.40.0000.00819.34
8.2.30.0040.00419.17
8.2.20.0000.00717.58
8.2.10.0070.00018.02
8.2.00.0060.00317.67
8.1.280.0070.01025.92
8.1.270.0030.00518.93
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00323.97
8.1.230.0060.00620.98
8.1.220.0000.00817.74
8.1.210.0060.00318.91
8.1.200.0070.00317.23
8.1.190.0040.00417.00
8.1.180.0000.00818.10
8.1.170.0050.00318.50
8.1.160.0060.00318.84
8.1.150.0040.00418.82
8.1.140.0080.00017.39
8.1.130.0030.00317.73
8.1.120.0040.00417.40
8.1.110.0050.00317.33
8.1.100.0070.00017.43
8.1.90.0070.00017.39
8.1.80.0040.00417.38
8.1.70.0030.00517.42
8.1.60.0000.00917.56
8.1.50.0000.00817.59
8.1.40.0030.00617.51
8.1.30.0000.00917.49
8.1.20.0040.00417.64
8.1.10.0080.00017.58
8.1.00.0040.00417.51
8.0.300.0050.00219.93
8.0.290.0030.00516.63
8.0.280.0000.00818.38
8.0.270.0000.00717.18
8.0.260.0030.00317.16
8.0.250.0070.00016.95
8.0.240.0000.00716.85
8.0.230.0030.00416.95
8.0.220.0070.00016.94
8.0.210.0060.00016.78
8.0.200.0040.00416.91
8.0.190.0040.00416.91
8.0.180.0000.00716.82
8.0.170.0040.00416.86
8.0.160.0050.00216.93
8.0.150.0040.00416.84
8.0.140.0000.00816.87
8.0.130.0030.00313.29
8.0.120.0050.00316.86
8.0.110.0060.00316.80
8.0.100.0040.00416.76
8.0.90.0050.00216.79
8.0.80.0130.00616.87
8.0.70.0040.00316.75
8.0.60.0030.00616.73
8.0.50.0000.00716.93
8.0.30.0110.01216.91
8.0.20.0110.00817.40
8.0.10.0070.00017.06
8.0.00.0060.01116.88
7.4.330.0050.00015.03
7.4.320.0040.00416.53
7.4.300.0000.00716.59
7.4.290.0030.00316.43
7.4.280.0070.00316.32
7.4.270.0000.00616.39
7.4.260.0070.00016.44
7.4.250.0040.00416.50
7.4.240.0050.00216.54
7.4.230.0030.00316.56
7.4.220.0060.01216.39
7.4.210.0100.01116.56
7.4.200.0030.00316.37
7.4.160.0080.00816.52
7.4.150.0150.00417.40
7.4.140.0160.00717.86
7.4.130.0090.00816.33
7.4.120.0110.00516.50
7.4.110.0090.01316.45
7.4.100.0090.00916.32
7.4.90.0070.01016.54
7.4.80.0080.00819.39
7.4.70.0130.00316.64
7.4.60.0030.01316.45
7.4.50.0040.00416.00
7.4.40.0090.00916.29
7.4.30.0070.01016.66
7.4.00.0110.00614.65
7.3.330.0060.00013.10
7.3.320.0030.00313.07
7.3.310.0000.00716.13
7.3.300.0030.00316.14
7.3.290.0070.01016.26
7.3.280.0070.01016.18
7.3.270.0080.00917.40
7.3.260.0190.00016.24
7.3.250.0110.00816.19
7.3.240.0080.01216.25
7.3.230.0100.01016.44
7.3.210.0200.00316.33
7.3.200.0140.00419.39
7.3.190.0140.00716.25
7.3.180.0030.01216.52
7.3.170.0060.00916.32
7.3.160.0060.01016.39
7.3.120.0060.01314.82
7.3.110.0110.00714.69
7.3.100.0030.01314.66
7.3.90.0030.01014.68
7.3.80.0000.01914.67
7.3.70.0070.00714.45
7.3.60.0090.00614.48
7.3.50.0000.01014.27
7.3.40.0030.00714.54
7.3.30.0000.01514.67
7.3.20.0030.01016.44
7.3.10.0000.01016.57
7.3.00.0070.00316.45
7.2.330.0160.00316.66
7.2.320.0130.00416.60
7.2.310.0030.01316.57
7.2.300.0110.00616.53
7.2.290.0130.00316.33
7.2.250.0070.01314.59
7.2.240.0070.01014.74
7.2.230.0060.01115.00
7.2.220.0000.01714.78
7.2.210.0070.01114.52
7.2.200.0060.00914.99
7.2.190.0120.00614.75
7.2.180.0070.01014.82
7.2.170.0000.01715.00
7.2.00.0080.01219.06
7.1.330.0070.00715.47
7.1.320.0000.01315.89
7.1.310.0030.01315.75
7.1.300.0000.01715.42
7.1.290.0080.00415.70
7.1.280.0030.01215.88
7.1.270.0030.01015.70
7.1.260.0070.00715.67
7.1.100.0030.01017.79
7.1.70.0000.01317.20
7.1.60.0100.00017.23
7.1.50.0070.00316.87
7.1.00.0070.07322.46
7.0.200.0100.00716.40
7.0.140.0000.03722.08
7.0.60.0030.04020.02
7.0.50.0030.08717.85
7.0.40.0130.08020.25
7.0.30.0370.07320.06
7.0.20.0370.06320.12
7.0.10.0070.08720.26
7.0.00.0070.08720.08
5.6.280.0000.07721.04
5.6.210.0100.06320.65
5.6.200.0100.06018.13
5.6.190.0070.05320.46
5.6.180.0200.04320.39
5.6.170.0270.04720.54
5.6.160.0070.08320.52
5.6.150.0030.08318.25
5.6.140.0030.05318.25
5.6.130.0070.04718.15
5.6.120.0170.07321.12
5.6.110.0100.08321.13
5.6.100.0070.06720.88
5.6.90.0070.07721.08
5.6.80.0100.07720.38
5.5.350.0270.04320.38
5.5.340.0030.04017.92
5.5.330.0130.07720.43
5.5.320.0300.03720.14
5.5.310.0370.07020.24
5.5.300.0030.08717.98
5.5.290.0170.07317.95
5.5.280.0070.06020.89
5.5.270.0030.06720.84
5.5.260.0170.08020.86
5.5.250.0170.07720.54
5.5.240.0030.06720.26
5.4.450.0730.08019.53
5.4.440.0970.05719.20
5.4.430.0800.05719.46
5.4.420.0600.05019.45
5.4.410.0670.06719.32
5.4.400.0400.05019.16
5.4.390.0130.05319.06
5.4.380.0400.05718.80
5.4.370.0230.06018.71
5.4.360.0370.04318.75
5.4.350.0270.06018.80
5.4.340.0330.05018.74
5.4.320.0300.05318.77
5.4.310.0270.05018.58
5.4.300.0270.06018.52
5.4.290.0300.04718.59
5.4.280.0200.06018.73
5.4.270.0230.05318.73
5.4.260.0400.05018.57
5.4.250.0270.06318.57
5.4.240.0330.05318.57
5.4.230.0300.06318.62
5.4.220.0230.05718.79
5.4.210.0300.04718.54
5.4.200.0330.04016.55
5.4.190.0370.04318.67
5.4.180.0270.05018.78
5.4.170.0430.04018.67
5.4.160.0200.05718.72
5.4.150.0300.05318.78
5.4.140.0270.04716.27
5.4.130.0370.04016.19
5.4.120.0370.04716.32
5.4.110.0230.05016.24
5.4.100.0270.05316.21
5.4.90.0230.05716.41
5.4.80.0230.05316.19
5.4.70.0170.06716.25
5.4.60.0270.05016.41
5.4.50.0300.03716.13
5.4.40.0200.05716.39
5.4.30.0130.05716.25
5.4.20.0200.05716.22
5.4.10.0200.05316.28
5.4.00.0270.05015.66
5.3.290.0270.07014.69
5.3.280.0270.05714.61
5.3.270.0270.06314.78
5.3.260.0130.06314.72
5.3.250.0300.05314.77
5.3.240.0230.06014.73
5.3.230.0200.06014.72
5.3.220.0370.04314.59
5.3.210.0170.06714.61
5.3.200.0300.06314.58
5.3.190.0200.05314.79
5.3.180.0300.04014.66
5.3.170.0370.04714.59
5.3.160.0400.04714.73
5.3.150.0300.06014.59
5.3.140.0270.05014.65
5.3.130.0370.04714.68
5.3.120.0230.05714.56
5.3.110.0330.05714.54
5.3.100.0400.05714.06
5.3.90.0270.05714.11
5.3.80.0200.05714.22
5.3.70.0230.05314.04
5.3.60.0370.04014.22
5.3.50.0300.06014.11
5.3.40.0370.06013.96
5.3.30.0430.05313.97
5.3.20.0270.05013.80
5.3.10.0270.06713.78
5.3.00.0170.05713.71
5.2.170.0170.04711.20
5.2.160.0270.05311.14
5.2.150.0230.04711.14
5.2.140.0130.05011.19
5.2.130.0170.04711.31
5.2.120.0100.04711.22
5.2.110.0070.04011.15
5.2.100.0030.04711.20
5.2.90.0200.04711.13
5.2.80.0200.04011.19
5.2.70.0300.03711.31
5.2.60.0370.05011.15
5.2.50.0330.04711.07
5.2.40.0170.04311.05
5.2.30.0170.04311.09
5.2.20.0100.04311.16
5.2.10.0100.04310.89
5.2.00.0200.04310.80
5.1.60.0200.03010.06
5.1.50.0230.02710.02
5.1.40.0170.03310.01
5.1.30.0130.03710.37
5.1.20.0170.03310.43
5.1.10.0100.04010.15
5.1.00.0100.04010.09
5.0.50.0130.0308.66
5.0.40.0100.0308.54
5.0.30.0170.0408.34
5.0.20.0100.0278.23
5.0.10.0070.0378.30
5.0.00.0070.0478.36
4.4.90.0100.0205.88
4.4.80.0030.0275.89
4.4.70.0100.0205.88
4.4.60.0030.0275.90
4.4.50.0130.0175.90
4.4.40.0030.0405.98
4.4.30.0030.0275.91
4.4.20.0070.0275.97
4.4.10.0100.0205.95
4.4.00.0100.0335.99
4.3.110.0100.0235.91
4.3.100.0070.0235.91
4.3.90.0030.0235.78
4.3.80.0100.0335.82
4.3.70.0030.0235.83
4.3.60.0070.0235.87
4.3.50.0070.0235.78
4.3.40.0070.0335.84
4.3.30.0000.0274.93
4.3.20.0070.0204.93
4.3.10.0030.0234.93
4.3.00.0000.0237.57

preferences:
56.57 ms | 401 KiB | 5 Q